MAX = 9

# Basic solution
print '** Basic Solution **'

from random import shuffle

questions = [ [i,j] for i in range(1,MAX+1) for j in range(1,MAX+1) ]
choices = range(len(questions))
shuffle(choices)

false_answers = []

for proxyq in choices:
   q = questions[proxyq]
   answer = raw_input('%dx%d = ' % tuple(q))

   if int(answer) == q[0]*q[1]:
      print 'correct'
   else:
      print 'incorrect'
      false_answers.append(q)

print 'You have answered all questions!'
