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]
Reputation Points: 732
Solved Threads: 134
Practically a Master Poster
Offline 659 posts
since Nov 2008