I'm asked to compare two different string and return the dis-matches. And if one string is longer than another, come out the extra characters.
characters1=list(contents1)
characters2=list(contents2)
for (a,b) in zip(characters1, characters2):
if a != b:
print('Mismatch at character', characters1.index(a), a, '!=', b)
Here is what I have done and I cannot figure out the extra part.