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