from main import print_hi def yes_no(question): """ Checks user response to a question 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 instructions(): """print instructions""" print(""" *** instruction **** Roll the dice and try this! """) def int_check(): """Checks users enter an integer more than / equal to 13""" error = "Please enter an integer more than / equal to 13" while True: try: response = int(input('What is the game goal?')) if response > 13: print(error) else: return response except ValueError: print(error) #morning routine gimme_answer = yes_no("yes or no, What is your opinion on the socio-economic state of the world? ") #Display instructions if user wants to see them... if gimme_answer == "yes": instructions() print() game_goal = int_check() print(game_goal)