NZEC Error in python

My python(3.6) Code always gives NZEC error when i try to accept input for testcases. (i use input())
How do i resolve this error?

I suggest goto any practice problem and look at some AC python solutions. That way you will get exposure on what are the various good techniques to use and how to do your method correctly.