#shape perimeter calcultor v2 print("This prograam calculates the perimeter and area of diffrent shapes") shape = input("Choose a shape from square, rectangle or circle ") if shape =="square": side = float(input("Enter the length of a side ")) square_perimeter = side*4 square_area = side**2 print(f"The perimeter of a square with a length of {side} the perimeter = {square_perimeter} the area = {square_area}") print("Square") elif shape =="rectangle": print("rectangle") length = float(input("Enter the length of the rectangle. ")) width = float(input("Enter the width of the rectangle. ")) perimeter = (length + width) *2 area = width * length print(f"The perimeter of the rectangle is {perimeter} The area is {area}") elif shape =="circle": print("circle") radius =float(input("What is the radius ")) area = (2 * radius) *3.141 circumference = 3.141 * radius**2 print (f"The area of the circle is {area} The circumference is {circumference}") else: print("that is not a valid shape") print("The program has ended")