Learn about Python Program to Find Area of Circle in the below code example. Also refer the comments in the code snippet to get a detailed view about what’s actually happening.
Contents
Python Program to Find Area of Circle
# python program to find area of circle
# take input from keyword
r = float(input('Enter the radius of the circle: '))
# calculating area of circle
area = 3.14 * r * r
# print result
print('Area of circle = %.2f ' %area)
Output:
Enter the radius of the circle: 5
Area of circle = 78.50
Hope above code works for you and Refer the below Related Codes to gain more insights. Happy coding and come back again.
Similar Code : Python Program to Find Square root of Complex Number