In [31]:
import math

In [32]:
from math import pi

In [37]:
pi


Out[37]:
3.141592653589793

In [38]:
def getVolume(radius):
    if radius >0:
        return 4/3*math.pi*radius**3
    else:
        pass

In [39]:
getVolume(3)


Out[39]:
113.09733552923254

In [ ]: