python program to Calculate the area of a circle using simple function code example
Example 1: area of a circle python
radius = float(input("Enter radius:"))
pi = 3.14
Area = pi * radius * radius
print("Area = " + str(Area))
Example 2: area of a circle in python
#Area Of A Circle in python
R = int(input("Enter the radius of the circle: "))
PI = 22/7 #This is a constant
A = PI * R * R
print(A)