# Blog

# To find the area of a circle

- Harshit
- October 27, 2020
- 10:56 pm
- One Comment

**A code to find the area of a circle using Python programming**

Welcome to the code! We’ll be finding the area of the circle using the python programming. We’ll be finding the area of the circle by defining a function “findArea” and the user has to input the radius of the circle.

The area of the circle is;

Area = pi * r^{2}where r is radius of circle

**Note:** Loved the post? You too can publish your article on “Python for fun” which will be loved by millions. Contribute an article!

```
``````
r = int(input("Enter the radius of the circle: "))
area = 3.142 * r*r
print("Area of the circle is %.3f" % area);
```

its nice

but if you want to simplify it just write 22/7 in the place of 3.142