# Logical operators, using lists # Prompt user to agree s = input("Do you agree? ") # Check whether agreed if s.lower() in ["y", "yes"]: print("Agreed.") elif s.lower() in ["n", "no"]: print("Not agreed.")