Answers for "add python function on radius = 3.56 area = calcAreaCircle(radius) perimeter = calcPerimeterCircle(radius) print('Circle : area = {0:.2f}, perimeter = {1:.2f}'.format(area, perimeter))"

0

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))
Posted by: Guest on April-10-2020

Code answers related to "add python function on radius = 3.56 area = calcAreaCircle(radius) perimeter = calcPerimeterCircle(radius) print('Circle : area = {0:.2f}, perimeter = {1:.2f}'.format(area, perimeter))"

Python Answers by Framework

Browse Popular Code Answers by Language