Answer
The code is below.
Work Step by Step
$Code:$
import math
import random
digit1=int(random.random())*10
digit2=int(random.random())*10
digit3=int(random.random())*10
answer=int(input("What is answer: "))
print(digit1,"+",digit2,"+",digit3,"=",answer,"is",(digit1+digit2+digit3==answer))