Question #270381

create a script to solve the volume of a sphere 

output the volume of the sphere.


Expert's answer

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}')
LATEST TUTORIALS
APPROVED BY CLIENTS