In [1]:
import math

In [2]:
from math import pi

In [3]:
def spherevol(radius):
    if radius > 0:
        f = float(radius)
        return (4/3) * math.pi * f**3
    else:
        return "Radius must be positive."

In [ ]: