NZEC error

This is my code :-

#!/usr/bin/python


import sys, os, string,linecache

def main():
    


    file2=open("out.txt",'w')

    no= linecache.getline("in.txt",1)

    for i in range(2,int(no)+2):
        #print i
        l1=linecache.getline("in.txt",i)
        l1=l1[:-1]
        #print l1
        l=len(l1)
        l=l-1
        if l%2==0:
            
            if  sorted(l1[0:l/2])==sorted(l1[l/2:l]):
                file2.write("Yes")
                file2.write("\n")
            else:
                file2.write("No")
                file2.write("\n")
        else:
                
                if sorted(l1[0:l/2])==sorted(l1[l/2+1:l]):
                    file2.write("Yes")
                    file2.write("\n")
                else:
                    file2.write("No")
                    file2.write("\n")

                    
    file2.close()

sys.exit(main())

It is working perfectly fine on my local machine . I am new to code shef . It is giving me NZEC effor … any idea what it is going the same ?

Dude specify which problem are you trying to solve?? BTW all the inputs must be taken from standard input STDIN and for output STDOUT.

Lapindromes… ! sry I forgot that .

Can you plz specify how wass inputs b taken ?

It is against the rules to discuss problems of an ongoing contest. Your account can get suspended or even banned permanently by admin.

Try to solve it on your own. If not you can discuss it after the contest is over. See solution of other users to practice problems for overview.

I suggest you close this question yourself.

//