Hamming distance imaqarpoq kingornaasuni arlalinnik nipilersorneqarsinnaavat. 
X imaqarpoq, y imaqarpoq kingornaasut, x-y Hamming distance ilaannuteqarpoq.
Pythonide ilisarnissaq: bin(x^y).count('1')
Qajaq ilisarnaatut tallimani Python-mut, XOR-operatortoq ukiuni kingornatigut bin-funktionit ilisarnermut akilerneqarnissaannut, suliffeqarfik binary-nut akilerneqarnerup kingusinnaavut:

```
def hammingTakortoq(x, y):
    # akilerneqarnerup ilisarnermut kingusinnaavut qalarisoqernerup nalunaaraat
    x_bin = bin(x)[2:].zfill(32)
    y_bin = bin(y)[2:].zfill(32)
    
    # XOR-operatortoq takortoq kingusinnaavut akilerneqarnermut
    diff = int(x_bin, 2) ^ int(y_bin, 2)
    
    # takortoq kingusinnaavut count-funktionit akilerneqarnermut 1-it akilerneqarnerup
    hammingTakortoq = bin(diff).count('1')
    
    return hammingTakortoq
```