import random

#Generate two random integers
number1 = random.randint(0, 9)
number2 = random.randint(0, 9)

#If number1 < number2, swap number1 and number2
if number1 < number2:
    number1, number2 = number2, number1

#Prompt the student to answer "What is number1 - number2
answer = eval(input("What is " + str(number1) + " - " + str(number2) + "? "))

#Repeatedly ask the student the question until the answer is correct
while number1 - number2 != answer:
    answer = eval(input("Wrong answer.  Try again. What is "
                        + str(number1) + " - " + str(number2) + "? "))

#Display message that you succeeded
print("You got it!")

aaa8dd69b3db0dd9124e836688551e3453329c8e
<mask token>

<mask token>
if number1 < number2:
    number1, number2 = number2, number1
<mask token>
while number1 - number2 != answer:
    answer = eval(input('Wrong answer.  Try again. What is ' + str(number1) +
        ' - ' + str(number2) + '? '))
print('You got it!')

<mask token>
number1 = random.randint(0, 9)
number2 = random.randint(0, 9)
if number1 < number2:
    number1, number2 = number2, number1
answer = eval(input('What is ' + str(number1) + ' - ' + str(number2) + '? '))
while number1 - number2 != answer:
    answer = eval(input('Wrong answer.  Try again. What is ' + str(number1) +
        ' - ' + str(number2) + '? '))
print('You got it!')

import random
number1 = random.randint(0, 9)
number2 = random.randint(0, 9)
if number1 < number2:
    number1, number2 = number2, number1
answer = eval(input('What is ' + str(number1) + ' - ' + str(number2) + '? '))
while number1 - number2 != answer:
    answer = eval(input('Wrong answer.  Try again. What is ' + str(number1) +
        ' - ' + str(number2) + '? '))
print('You got it!')

import random

#Generate two random integers
number1 = random.randint(0, 9)
number2 = random.randint(0, 9)

#If number1 < number2, swap number1 and number2
if number1 < number2:
    number1, number2 = number2, number1

#Prompt the student to answer "What is number1 - number2
answer = eval(input("What is " + str(number1) + " - " + str(number2) + "? "))

#Repeatedly ask the student the question until the answer is correct
while number1 - number2 != answer:
    answer = eval(input("Wrong answer.  Try again. What is "
                        + str(number1) + " - " + str(number2) + "? "))

#Display message that you succeeded
print("You got it!")
