def int_check(question, low_number, high_number): """Checks users enter an integer more than / equal to 13""" error = f"Please enter a number between {low_number} and {high_number}." while True: try: response = int(input(question)) if response < low_number or response > high_number: print(error) else: return response except ValueError: print(error) # Main routine stars here rounds = int_check("How many rounds do you want between 1 - 10 ", 1, 10) print(f"There are {rounds} rounds.... lets begin") question_1 = int_check("What is 9 x 10 ", 20, 100) correct_answer = 90 if question_1 == correct_answer: print("Correct answer") else: print(f"Incorrect answer, the correct answer is {correct_answer}")