Output
Variable Name      Object in Memory
number1
number2
answer
temp
  1  import random 
  2  
  3  # Generate random numbers
  4  number1 = random.randint(0, 9)
  5  number2 = random.randint(0, 9)
  6  
  7  # Prompt the user to enter an answer
  8  answer = eval(input("What is " + str(number1) + " + "
  9      + str(number2) + "? "))
 10      
 11  # Display result    
 12  print(number1, "+", number2, "=", answer, 
 13      "is", number1 + number2 == answer)