Skip to content

Commit

Permalink
Update sphere.py
Browse files Browse the repository at this point in the history
Fixed tabs to hopefully resolve the flake8 error
  • Loading branch information
meganhuibregtse authored Aug 5, 2024
1 parent e693c3c commit 93be5b6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/geometry/sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

def calculate_volume(r):
"""
Calculate the volume of a sphere.
Calculate the volume of a sphere.
This uses the standard mathematical calculation:
This uses the standard mathematical calculation:
$\(4/3) pi r ^3$
$\(4/3) pi r ^3$
Parameters
----------
r : float, the radius
Parameters
----------
r : float, the radius
Returns
-------
float : the volume of the sphere
"""
volume = (4/3) * pi * r **3
return volume
Returns
-------
float : the volume of the sphere
"""
volume = (4/3) * pi * r **3
return volume


def calculate_surface_area(r):
Expand Down

0 comments on commit 93be5b6

Please sign in to comment.