git_practice/circle1.py

10 lines
135 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 circle "))
area = PI * radius**2
print(f"The area is {area}")