Answer
$Code$
Work Step by Step
$Statement:$
(Game: learn addition) Write a program that generates two integers under 100 and prompts the user to enter the sum of these two integers. The program then reports true if the answer is correct, false otherwise.
$Code:$
import random
import math
number1 = random.randint(0,9) * 100
number2 = random.randint(0,9) * 100
answer=int(input("what is {} + {} ?".format(number1, number2)))
print("number1 + {} + {} = {} is {}".format(number1,number2,answer,(number1+number2==answer)))
$Output:$