Answer to Question #270381 in Python for Peaches

Question #270381

create a script to solve the volume of a sphere 

output the volume of the sphere.


1
Expert's answer
2021-11-23T11:23:20-0500
from math import pi




r = float(input('radius of sphere: '))
v = (4/3) * pi * r**3
v = round(v, 3)
print(f'volume of sphere: {v}')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS