Please read my complete question before sending a reply. I was solving this problem
When I provide MANUAL INPUT and run the program it works fine but if I don’t provide manual input then it is giving this error
Traceback (most recent call last):
File "prog.py", line 1, in <module>
EOFError: EOF when reading a line
The same thing was reported here but the question was closed without giving proper solution
Please provide a working solution for this. There is no problem with my code because it was working with manual input.