edhesive 2.5 practice code answers
Answers
Answered by
98
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:
Answered by
1
edhesive 2.5 practice code answers
import random
X = random.randint(1,10)
Y = random.randint(1,10)
print ("What is: " + str(X) + " X " + str(Y) + "?")
Temp = int(input("the answer is: "))
if (X* Y== Temp):
print ("Right!")
else:
print ("Wrong!")
#SPJ3
Similar questions