#This program caculates the perimeter and area of differnt shapes print ("This program caculates the perimeter and area of differnt shapes") shape = input("choose a shape from square,rectangle or circle ") if shape == "s": print("square") side = float(input("Enter the length of a side ")) sqaure_area = side **2 square_perimeter = side * 4 print(f"The perimeter of your square is {square_perimeter} the area is {square_area}") elif shape == "rectangle": print ("rectangle") length = float(input("Enter the length of the rectangle ")) width = float(input("Enter the width of a rectangle ")) perimeter = (length + width) * 2 area = width * length print(f"The perimeter of the rectangle is {perimeter} the area is {area}") else: print ("circle") print ("The program has ended")