10 lines
165 B
Python
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}")
|