# dictionary_quiz

v1 = 123

v2 = 57

 

print 'What is %d x %d? | a.) 7110 b.) 7011 c.) 7101 d.) 7001' % (v1, v2)

 

while True:

    ans = raw_input('What is your answer? (a, b, c, or d)').lower()

    ansDict = {'a': 7110, 'b': 7011, 'c': 7101, 'd': 7001}

    try:

        result = ansDict[ans]

        print "The answer you have selected is %s" % result

        break

    except KeyError, e:

        print "You have responded incorrectly. Please enter 'a', 'b', 'c' or 'd'."

 

if result == v1*v2:

    print "Correct"

else:

    print "Incorrect"