#This progam calculates the perimeter and area of different shapes print(f"This progam calculates the perimeter and area of different shapes") keep_going = "" while keep_going == "": shape = input(f"Choose a shape from square (s), rectangle (r), or circle (c). ") #check user input shape_change = shape.lower() if shape_change == "s": print(f"You have chosen square.") length = float(input(f"How long is your shape? ")) area = length * length perimeter = length * 4 print (f"The perimeter of your shape is {perimeter} and the area of your shape is {area}") elif shape_change == "r": print(f"You have chosen rectangle.") width = float(input(f"How wide is your shape? ")) length = float(input(f"How long is your shape? ")) area = length * width perimeter = length + width * 2 print (f"The perimeter of your shape is {perimeter} and the area of your shape is {area} ") elif shape_change == "c": print(f"You have chosen circle.") radius = float(input(f"What is the radius? ")) import math area = math.pi * (radius ** 2) circumference = 2 * math.pi * radius print(f"The area of your shape is {area} and the circumference of your shape is {circumference}") else: print("That is not one of the selected shapes. Try again.") keep_going = input("To enter another shape press enter or any key to exit") print(f"The program has ended...")