Computer Science, asked by brishtymondal48871, 1 year ago

Edhesive 2.5 code practice answer please!

Answers

Answered by eburcham58
0

Answer:

import random

a = random.randint(1,10)

b = random.randint(1,10)

print ("What is: " + str(a) + " X " + str(b) + "?")

ans = int(input("Your answer: "))

if (a * b == ans):

   print ("Correct!")

else:

   print ("Incorrect!")

Explanation:

hope it helps

Similar questions