1radius = float(input("Enter radius:"))
2pi = 3.14
3Area = pi * radius * radius
4print("Area = " + str(Area))
5
1import math
2
3radius = 3
4area = math.pi * radius * radius
5# another way would be to set variable and round - rounded_area = round(area, 3)
6print(f'The area of the circle is {area:.3f}')
7# round answer to 3 decimal places
8
1#Area Of A Circle in python
2R = int(input("Enter the radius of the circle: "))
3PI = 22/7 #This is a constant
4A = PI * R * R
5print(A)