# Ask the user to select a color color = input("Select a color (red, green, or blue): ").strip().lower() # Check the user's input and display the appropriate message if color in ["red", "r"]: print("You selected red.") elif color in ["green", "g"]: print("You selected green.") elif color in ["blue", "b"]: print("You selected blue.") else: print("Incorrect choice.")