def show_instructions(): while True: answer = input("Do you want to see the instructions? (yes/no): ").lower() if answer == "yes" or answer == "y": print(""" ***** Instructions ***** - Choose how many questions you want. - Answer multiplication questions. - Questions are between 1 and 12. - Get 1 point for each correct answer. - Your final score is shown at the end. Good luck! """) break elif answer == "no" or answer == "n": break else: print("Please enter yes or no.") show_instructions()