git_practice/homework06/program-files/7 - Added circle and sphere programs/sphere1.py
2025-12-14 18:34:36 -05:00

10 lines
165 B
Python

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}")