ハミング距離
The following function, written in Python 3, returns the Hamming distance between two strings: