#functions go here def yes_no (question): while True: response = input(question).lower() if response == 'yes' or response == 'y': return "yes" elif response == 'no' or response == 'n': return "no" else: print("please enter yes/no") def instructions(): """prints instructions""" print(""" *** Instructions *** Roll the dice and try to win! """) #main routine #ask the user if they want to see the instructions want_instructions = yes_no("Do you want to see the instructions? ") #Display the instructions if the user responded with yes if want_instructions == 'yes': instructions() print() print("Program continues")