# The 2nd Python program def yes_no(question): while True: response = input(question).lower() #checks user responce, question #repeats if users don't enter yes / no if response == "yes" or response == "y": return "yes" elif response == "no" or response == "n": return "no" else: print("Please enter yes / no") #displays instructions def instructions(): print('No more code') want_instructions = yes_no("Do you want to see the instructions? ") print("You chose: ", want_instructions) if want_instructions == 'yes': instructions() print('program has ended')