Run Code
|
API
|
Code Wall
|
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
linked_lists_2+decisions
Prime Numbers : -> Conventional Method
HW Descending order Insertion Sort
pythonic way (V2)
rstring
PYTHON 3
PyDIP
emoji
Student
dict()