Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Python/vol_of_sphere.py
Original file line number Diff line number Diff line change
@@ -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)