diff --git a/Python/vol_of_sphere.py b/Python/vol_of_sphere.py new file mode 100644 index 0000000..2a2359b --- /dev/null +++ b/Python/vol_of_sphere.py @@ -0,0 +1,7 @@ +# Write a python program to get the volume of a sphere with radius input from user + +from math import pi + +r = int(input("Enter the radius of sphere:")) +v = 4.0/3.0*pi*r**3 +print("The volume of sphere is:",v)