# functions go here def yes_no(question): while True: response = input(question).lower() if response == "yes" or response == "no": return response else: print("Please answer yes / no") def instructions(): """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")