One-liner solution in Creative category for The Hamming Distance by suic
checkio = lambda n, m: bin(n ^ m).count("1")
Dec. 8, 2014