Question: 
Write a python function to check whether the two numbers differ at one bit position only or not.


Model's Code:
def differ_At_One_Bit_Pos(num1, num2):
    return bin(num1 ^ num2).count('1') == 1



Sample Correct Code:
def is_Power_Of_Two (x): 
    return x and (not(x & (x - 1))) 
def differ_At_One_Bit_Pos(a,b): 
    return is_Power_Of_Two(a ^ b)


Asserts:
assert differ_At_One_Bit_Pos(13,9) == True
assert differ_At_One_Bit_Pos(15,8) == False
assert differ_At_One_Bit_Pos(2,4) == False


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

Test 6 of 974: 4/6 (66.66666666666666%): success