Skip to content

Commit

Permalink
Merge branch 'main' into 20-update-spherepy-function
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem authored Aug 5, 2024
2 parents 5be3462 + 18e476a commit 3732df7
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ this is a README that I want to change like this.

and now it's got a second line!

MF: Making a change.
Checking out how to complete work and open a pull request!

MF: Making a change.

ML: making another change.

I changed a README file.

JW: Making more changes.

1 change: 1 addition & 0 deletions annachiara
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is an example
3 changes: 3 additions & 0 deletions clothes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
help
clothes stolen
am cold
2 changes: 2 additions & 0 deletions clothes2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lost clothes again
how does this keep happening
1 change: 1 addition & 0 deletions figuring-out-who-to-call
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo 'Ghostbusters!'
1 change: 1 addition & 0 deletions naming my file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
file
16 changes: 15 additions & 1 deletion src/geometry/sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,18 @@ def calculate_volume(r):
"""

volume = (4 * pi * r **3) / 3
return volume
return volume


def calculate_surface_area(r):
"""
Calculate the surface area of a sphere.
This uses the standard mathematical calculation:
$4\pi r ^2$
float : the surface area of the sphere
"""
surface_area = 4 * pi * r **2
return surface_area

0 comments on commit 3732df7

Please sign in to comment.