Python EOF error on all the inputs

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

Hi
The aforementioned error is pops up everytime it reads an input.
Its Python 3.6 and I donno where I am going wrong. Works smooth on custom I/P.
Is the custom input mandatory to run the program?

Tried try and except

Yes :slight_smile: See e.g. here.

1 Like