Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Calculate Volume of Sphere
#python 3.6.9 def print_volume(r): import math #import math function to use value of Pi. v=(4/3)*(math.pi)*r**3 # calculate volume of sphere given radius r. print(f'Volume of Sphere for r={r}, v=(4/3)*math.pi*r^3= ',v) #print volume of sphere print_volume(5) print_volume(10) print_volume(15)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
PyGen2
HW Descending Order Final
Lawrence.py
Привет
(P3) Zadanie Kolokwium 2013: Trójkąty i trójkąty
Infinite Fibonacci generator
multiple inheritance
X
Bubble sort
4
Please log in to post a comment.