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
word repeat
self
Python input
ggh
Skillenza- Subjects
Reading XML file for modification
functions add
Ex_039.py
kenken1
Python 3: Queue