Daily Python Projects

Daily Python Projects

Eight geometry functions

Level: Real-World

Ardit Sulce's avatar
Ardit Sulce
May 15, 2024
∙ Paid

Project Brief

Today we have an easy task to make sure you know how to use Python functions well. Your task is to create five functions:

  • circle_area: gets the radius and returns the area

  • circle_circumference: gets the radius and returns the circumference

  • rectangle_area: gets length and width and returns the area

  • rectangle_perimeter: gets length and width and returns the perimeter

  • triangle_area: gets base and height and returns the area

  • triangle_perimeter: gets the three triangle sides and returns the perimeter

  • sphere_surface_area: gets the radius and returns the area

  • sphere_surface_volume: gets the radius and returns the volume

Once you define the functions, call them with some sample values.

Expected Output

Keep reading with a 7-day free trial

Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Ardit Sulce · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture