I guess you want to write this
def vocabtest():
for value in testwords:
print "What word does the following definition correspond with?"
print value
answer = raw_input("> ")
if (answer == testwords[value]):
print "Correct!"
else:
print "No the answer is ",testwords[value]
StuXYZ
Practically a Master Poster
680 posts since Nov 2008
Reputation Points: 760
Solved Threads: 138