Question: how to calculate hamming distance python?
Answer: b1 = right shift of x (i AND 1 time)
b2 = right shift of y (i AND 1 time)
if b1 = b2, then answer := answer + 0, otherwise answer := answer + 1.