Write a function called print volume (r) that takes an argument for the radius of the sphere, and prints the volume of the sphere.
def printVolume(r):
pi=3.142
volume=(4/3)*pi*r*r*r;
print("The volume of the sphere is : ",volume)
printVolume(7)
Comments
Leave a comment