import random # generates the two terms to use in questions def int_generator(): # Generates a random number between 2 and 12 term_1 = random.randint(2,12) term_2 = random.randint(2,12) return term_1, term_2 term_1, term_2 = int_generator() print(f"The chosen terms are {term_1} and {term_2}")