Question: 
Write a python function to check whether the given number can be represented as sum of non-zero powers of 2 or not.


Model's Code:
def is_Sum_Of_Powers_Of_Two(n):
    if n <= 0:
        return False
    total = 0
    power = 1
    while total < n:
        total += power
        power *= 2
    return total == n



Sample Correct Code:
def is_Sum_Of_Powers_Of_Two(n): 
    if (n % 2 == 1): 
        return False
    else: 
        return True


Asserts:
assert is_Sum_Of_Powers_Of_Two(10) == True
assert is_Sum_Of_Powers_Of_Two(7) == False
assert is_Sum_Of_Powers_Of_Two(14) == True


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 138 of 974: 101/138 (73.18840579710145%): failed