Question: 
Write a python function to find the hamming distance between given two integers.


Model's Code:
def hamming_Distance(x, y):
    return bin(x ^ y).count('1')



Sample Correct Code:
def hamming_Distance(n1,n2) : 
    x = n1 ^ n2  
    setBits = 0
    while (x > 0) : 
        setBits += x & 1
        x >>= 1
    return setBits  


Asserts:
assert hamming_Distance(4,8) == 2
assert hamming_Distance(2,4) == 2
assert hamming_Distance(1,2) == 2


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 203 of 974: 150/203 (73.89162561576354%): success