one-liner solution in Clear category for The Hamming Distance by aoleynik
checkio = lambda x, y: bin(x ^ y).count('1')
Jan. 27, 2015