Python: Getting EOF error / Confused with inputs

Hi there.First timer.
Wrote a program and getting

Runtime Error
NZEC
Error
Traceback (most recent call last):
File “./prog.py”, line 45, in
EOFError: EOF when reading a line

on Running in IDE mode
Tried using custom input and copied the ‘input’ section from the problem.Gives proper output.
This is what is on my line 45 “count=int(input())”

See e.g. the post NZEC error in Python 3 and onwards :slight_smile:

1 Like

Now I am getting correct output on entering the input manually but it says “Wrong” on submission.How do I check what went wrong?
thanks in advance

Codechef provides no way of viewing the testcases, so I’m afraid you’ll have to do make your own testcases and do some good old-fashioned debugging :slight_smile: Or see the Editorial for the Problem you’re stuck on, if there is one.

UCL Editorial is the link.Saw comments there.I guess others too are having this problem

use this format :
try:
“”“your code …
…”""
except:
pass

Please share the problem and your complete code.