# function go here from RPS.C_01_yes_no_basic import want_instructions def yes_no(question): """Checks user response to a question is yes/no (y/n), returns 'yes' or 'no' """ while True: response = input(question).lower() # check the user says yes/no/y/n if response == "yes" or response == "y": return "yes" elif response == "no" or response == "n": return "no" else: print("please enter yes / no") def instructons() """Prints instructions""" print(""" *** Instructions **** Roll the dice and try to win! """) # Main routine # ask the user if they want instructions (check they say yes/no) want_instructions = yes_no("Do you want to see the instructions?") # Display the instructions if the user wants to see them... if want_instructions == "yes": instructions() print() print("Program continues")