Write a function to return the volume of a sphere


Topic: Write a function to return the volume of a sphere

Solution

def cal_sphere_volume(radius:float)->float:
    pi=3.14
    return (4/3)*pi*(radius**3)



List all Python Programs