Question: 
Write a python function to check for odd parity of a given number.


Model's Code:
def check_Odd_Parity(number):
    return bin(number).count('1') % 2 == 1



Sample Correct Code:
def check_Odd_Parity(x): 
    parity = 0
    while (x != 0): 
        x = x & (x - 1) 
        parity += 1
    if (parity % 2 == 1): 
        return True
    else: 
        return False


Asserts:
assert check_Odd_Parity(13) == True
assert check_Odd_Parity(21) == True
assert check_Odd_Parity(18) == False


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

Test 768 of 974: 580/768 (75.52083333333334%): success