ここに私のコードがあります:
import random
for i in range(10):
x=random.randint(1, 10)
y=random.randint(1, 10)
prompt="What is " + str(x) +" times " + str(y) + "? "
answer = raw_input(prompt)
z = x * y
if answer == x*y:
print "That's right"
else:
if answer == x*y:
print "That's wrong"
print answer
print z
それの何が問題なのか、本当の声明を出していない