<filename>parity.py<gh_stars>1-10
def parity int:
    result =0
while x:
    result^=x & 1
    x>>=1
return result

<filename>parity.py<gh_stars>1-10
def parity int:
    result =0
while x:
    result^=x & 1
    x>>=1
return result
