git_practice/sphere1.py

11 lines
165 B
Python
Raw Normal View History

2024-12-21 20:50:38 -05:00
import math
PI = math.pi
radius = float(input("Enter the radius of a sphere "))
volume = 4 / 3 * PI * radius**3
print(f"The volume of the sphere is {volume}")