#This program caculates the perimeter and area of differnt shapes print ("This program caculates the perimeter and area of differnt shapes") keep_going = "" while keep_going == "": shape = input("choose a shape from square (s), rectangle (r) or circle (c) ") 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}") elif shape == "c": print("circle") radius = float(input("Enter the radius of the circle ")) perimeter = (2 * radius) * 3.14 area = 3.14 * radius**2 print(f"The circumference of the circle is {perimeter} " else: print ("That is not a valid shape") keep_going = input("To enter another shape press enter or any key to exit") print ("The program has ended")