how to find the area of a circle formula code example
Example 1: calculate area of circle
import math
r = 50
a = r**2*math.pi
print(a)
Example 2: how to find area of circle
def circle(radius):
3.14 * radius * radius
circle(12)
import math
r = 50
a = r**2*math.pi
print(a)
def circle(radius):
3.14 * radius * radius
circle(12)