Question: 
Write a python function to count set bits of a given number.


Model's Code:
def count_Set_Bits(n):
    count = 0
    while n:
        count += n & 1
        n >>= 1
    return count



Sample Correct Code:
def count_Set_Bits(n): 
    count = 0
    while (n): 
        count += n & 1
        n >>= 1
    return count 


Asserts:
assert count_Set_Bits(2) == 1
assert count_Set_Bits(4) == 1
assert count_Set_Bits(6) == 2


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

Test 224 of 974: 164/224 (73.21428571428571%): success