178k views
4 votes
Can anyone help me with this 2.5 Code Practice

1 Answer

2 votes

Answer:

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!")

User Gmfvpereira
by
6.4k points