In [31]:
import math
In [32]:
from math import pi
In [37]:
pi
Out[37]:
In [38]:
def getVolume(radius):
if radius >0:
return 4/3*math.pi*radius**3
else:
pass
In [39]:
getVolume(3)
Out[39]:
In [ ]: