from random import * base = 5 other = randint(1,10) ans = input("what is "+ str(base) + " x " + str(other) + " : ") ans = int(ans) if ans == base * other : print("yes, that's right! ") else : print ("no, that's not the right answer ") print (base, " x ", other, " is ", (base * other) )