import random
m = 0
while m!="fim" :
n1=int(random.random()*10)
n2=int(random.random()*10)
m = raw_input("{} * {} = ".format(n1,n2))
mult = int(n1*n2)
if m==mult :
print "correto!"
else :
print "errado!!"
But whenever I type something, the program always prints "wrong !!" , What is the error in my code? Is it well written? Is it possible to optimize it more? If so, how?