This is the behaviour I want:
a: IGADKYFHARGNYDAA c: KGADKYFHARGNYEAA 2 difference(s).
def diff_letters(a,b): return sum ( a[i] != b[i] for i in range(len(a)) )
2.1m questions
2.1m answers
60 comments
56.9k users