Here is the question:
Given two words with the same number of letters in each, work out how many letters need to be changed to get from the first word to the second. A more complex version of edit distance is commonly used in spelling auto-correct algorithms on phones and word processors to find candidate corrections.
The two words should be read from the user with one word per line. For example:
Word 1: hello
Word 2: jelly
2
this is all I got:
w1 = input('Word 1: ')
w2 = input('Word 2: ')
for i in w1:
for o in w2:
print(i, o)
How do I do this?