Answer to Question #292712 in Python for ansumath

Question #292712

Write a program to input side of a square and find the area and perimeter of a square.


1
Expert's answer
2022-02-01T12:29:55-0500
def area_per(x):
    print('The area of the square is {}'.format(x**2))
    print('The perimeter of the square is {}'.format(4*x))


area_per(5)

The area of the square is 25
The perimeter of the square is 20

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS