python(Error NZEC)


n=0
while n>=100:
        n=input('Input:')
l=[]
ch=[]
al=[]
k=[]
f=[]
count=0
for i in range(0,n):
        l.append(raw_input())
for a in l:
        for e in list(a):
                if ord(e)==41:
                        count=count+1
                elif e!=')':
                        if count!=0:
                                k.append(ch.pop(-count-1))
                                for j in range(0,count):
                                        k.append(ch.pop(-count+j))
                                for j in range(0,count):
                                        k.append(al.pop())
                                count=0
                        if (41<ord(e)<48 or ord(e)==94) and ord(e)!=46:
                                al.append(e)
                        elif ord(e)!=40:
                                ch.append(e)
        al.reverse()
        if count!=0:
                for j in ch:
                        k.append(j)
                for j in al:
                        k.append(j)
        f.append(''.join(k))
        count=0
        k=[]
        al=[]
        ch=[]
for i in f:
        print i

my code is having NZEC error even my previous codes had the same error plzzz help!!
Thanks

Please provide a link to the question and also a link to your code either on code chef or on ideone.com . It is very difficult to understand code like this especially in an indent based language like python.

Also according to the first 2 lines of your code “n=0; while n>=100:”, the while loop will never get executed as n is 0.

Thanks for the advice here is the ideone.com link f1SjRo - Online Python Interpreter & Debugging Tool - Ideone.com and the question is ONP Problem - CodeChef and can anyone please suggest how to remove such errors…

There are few mistakes that can easily be seen.

1)No need to print anything like ‘Input’ in the code. it will automatically be given.So replace n=input(‘Input:’) by n=input(). Check out rules of I/O in FAQ once

2)No of inputs will be given just once.so you need to use n=input() only once at the beginning.Also you can process test cases individually . no need to store them all in a list.

try correcting these first and then move on to debug other errors.