want_instructions =input("Do you want to see the instructions? ").lower() while True: # check the user says yes/no if want_instructions == "yes" or want_instructions == "y": print("you said yes") elif want_instructions == "no" or want_instructions == "n": print("You said no") else: print("please enter yes / no")