Write a Python class named Circle constructed by a radius and two methods which will compute the area and the perimeter of a circle code example
Example: add python function on radius = 3.56 area = calcAreaCircle(radius) perimeter = calcPerimeterCircle(radius) print('Circle : area = {0:.2f}, perimeter = {1:.2f}'.format(area, perimeter))
radius = 3.56
area = calcAreaCircle(radius)
perimeter = calcPerimeterCircle(radius)
print('Circle : area = {0:.2f}, perimeter = {1:.2f}'.format(area, perimeter))
side = 9.23
area = calcAreaSquare(side)
perimeter = calcPerimeterSquare(side)
print('Square : area = {0:.2f}, perimeter = {1:.2f}'.format(area, perimeter))
width = 2.9
height = 14.22
area = calcAreaRect(width, height)
perimeter = calcPerimeterRect(width, height)
print('Rectangle: area = {0:.2f}, perimeter = {1:.2f}'.format(area, perimeter))
base = 7.97
height = 5.31
area = calcAreaTriangle(base, height)
print('Triangle : area = {0:.2f}'.format(area))