import random
x = random.randint(1,10)
y = random.randint(1,10)
Guess = int(input("What is {} X {}?".format(x, y)))
if Guess == x*y:
print(str(Guess) + ' is correct!')
else:
print('You said ' + str(Guess) + '. I got ' + str(x*y))
No comments:
Post a Comment