Hamming distance
The following function, written in Python 3, returns the Hamming distance between two strings: