I got the same error. Try this method 
try:
{indentation}{your complete program here}
except:
{indentation}pass
I got the same error. Try this method 
try:
{indentation}{your complete program here}
except:
{indentation}pass
Thanks dude … I was having the same problem .It sucks man
Reason of Error:- codechef testcases dont give “/n” i.e. enter (newline charecter) at the end of the input, which is fine with most programming languages like c and c++ but python input() only returns the value after it encounters a newline. so now u may be wondering how to solve this problem.
Solution:-
I wrote down a code. on giving custom input it ran fine . But on submitting it ,it still gave me nzec error .Can you please tell me how to remove that
absolutely Thanks man !
hey thanks bro!!
Put all of your code in try and except blocks.
like,
try:
-----
except:
pass
It helped me. I hope it helps you too 
that means, your code breaks somewhere, just see if you are accessing something out of bound, allocating too much memory or something else
The code below when print(t), t = 0, how to let the input() get the data from me at IDE mode, I use Python Tutorial
online compile.
Thanks.
t = 0
try:
t = input(“Please input your name:”)
except:
pass
print(t)
I would suggest you use this method for taking input from users for the list in python. it works perfectly 
import sys
def get_ints(): return list(map(int, sys.stdin.readline().strip().split()))
LIST = get_ints()
not working at all
Please post a link to your submission.
@japatpreet don’t use the psyco module; it’s not part of the standard library.
If you want to work with compiled Python code, just code under the PyPy language option.
I am currently learning Python from YouTube, as a beginner it is little bit difficult to understand.
I think this error occurs when input are on same line and you take input like this
a=int(input)
b=float(input)
Instead take input like this
a , b = input().split()
a = int(a)
b = float(b)
It will work.
lifesaver lol
@shailly_raj Looks like you’re trying to read a line of input for a fourth case, for some reason. Are you handling the number of cases properly?
You can find me on Twitter (@Joffan7)