print("=== Shapes Program ===") print("1. Rectangle") print("2. Square") choice = input("Choose a shape (1-4): ") elif choice == "1": length = float(input("Enter the length: ")) width = float(input("Enter the width: ")) area = length * width print("Area of the rectangle =", area) elif choice == "2": side = float(input("Enter the side length: ")) area = side * side print("Area of the square =", area) else: print("Invalid choice. Please run the program again.")