#This program caculates the perimeter and area of diffrent shapes print (" This program caculates the perimeter and area of diffrent shapes ") shape = input ("Choose a shape from square,rectangle or circle ") #check user input if shape == "square": print("square") side =float (input("enter the length of a side ")) square_area = side **2 square_perimeter = side * 4 print(f" the perimeter of a square with a lenght of (sidel) is (square_perimeter)" f" the area is (square_area)") elif shape == "rectangle": print("rectangle") lenght = float(input("Enter the lenght of 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) " f"the area is (area)") elif shape == "rectangle": 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) " f"the area is (area) ") else: print("That is not a valid shape") print(" the program has ended")