In [3]:
from math import pi
def sphere_vol(radius):
if radius > 0:
return (4*float(pi)*radius*radius*radius)/3
In [6]:
sphere_vol(10)
Out[6]:
In [ ]: