Wednesday, 2 October 2013

Comparing two words from two lists in python

Comparing two words from two lists in python

I would like to compare words that are in two different lists, so for
example, I have:
['freeze','dog','difficult','answer'] and another list
['freaze','dot','dificult','anser']. I want to compare the words in this
list and give marks for incorrect letters. So, +1 for being correct, and
-1 for one letter wrong. To give some context, in a spelling test, the
first list would be answers, and the second list would be the student's
answers. How would i go about doing this?

No comments:

Post a Comment