import random # function go here def yes_no(question): """checks user response to a question is yes / no""" while True: response = input(question).lower() # check the user says yes / no if response == "yes" or response == "Yes": return "yes" elif response == "no" or response == "No": return "no" else: print("please enter yes or no") def instructions(): """Prints instructions""" print(""" *** Instructions **** Answer the following questions and get your final score at the end """) # Main routine # ask the user if they want instructions (check they say yes / no) want_instructions = yes_no("Do you want the see the instructions? ") # Display the instructions if the user wants to see them... if want_instructions == "yes": instructions() print() num_1 = random.randrange(1,10) num_2 = random.randrange(1,10) answer = num_1 * num_2 user_answer =int(input(f"What is {num_1} x {num_2}? ")) #game_goal = int_check() #print(game_goal)