Help me in solving AO15 problem

My issue

My code

# this code has some logical error - debug this code to solve the problem

t = int(input())
X=1
for i in range(t):
    n = int(input())
    A = list(map(int,input().split()))
    for i in range(n):
        M=A[i]
        X=X*M
    if X<0:
        print(1)
    else:
        print(0)
    

Learning course: Python for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone

In code debugging, there’s a character limit on how much you can change the code. You don’t have to solve the problem but find logical error in given code
In this case, the error is that code isn’t complete, hence you have to add
else: print(0)
in the end (mind the indentation level.)