Computer Science, asked by kelliroyster, 9 months ago

edhesive 2.5 practice code answers

Answers

Answered by eburcham58
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 Jasleen0599
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