For this Question: You are asked Q questions. For each question, you have to determine whether the given number X can be represented as a sum of two or more consecutive positive integers.The first line contains a single integer, Q, denoting the number of questions
(1≤ Q ≤ 100).
In each of the next Q lines, a positive integer X is given (1 ≤ X ≤ 10^9).For each of the Q questions, print the answer in a single line: If satisfy the given condition then print Yes otherwise print No.sample input:
7
9
2
1
10
20
100
200

sample output:
Yes
No
No
Yes
Yes
Yes
Yes

<b>Explanation</b>
The answer for X=9 is Yes as 9=2+3+4 
The answer for 2 is No (note that (−1)+0+1+2=2 is invalid as only positive integers are allowed)., I have written this Solution Code: n = int(input())
def canBeSumofConsec(n):
    n = 2 * n
    if((n & (n - 1)) != 0):
        print("Yes")
    else:
        print("No")

for i in range(n):
    a = int(input())
    canBeSumofConsec(a), In this Programming Language: Python, Now tell me if this Code is compilable or not?