# This program calculates the perimeter and area of different shapes print ("This program calculates the perimeter and area of different shapes") shape= input ("choose a shape from square, rectangle or circle ") #check user input if shape =="square": side = float(input("enter the lenth of a side")) square_perimeter= side * 4 square_area= side**2 print (f"the perimeter of a shape with a length of {side} = {square_perimeter} the area = {square_area}") print ("square") elif shape=="rectangle": print ("rectangle") else: print ("circle") radius = float(input("what is the radius")) print ("The program has ended")