Learn about Python Program to Find Area of Circle using Math Module in the below code example. Also refer the comments in the code snippet to get a detailed view about what’s actually happening.
Python Program to Find Area of Circle using Math Module
# python program to find area of circle using math file # math module import math # taking input r = float(input('Radius of the circle: ')) # calculating area area = math.pi * r * r # print result print('Area of circle = %.2f ' %area)
Radius of the circle: 10
Area of circle = 314.16
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 Area of Circle