Python EOF Error














































Python EOF Error



EOF Error Python

EOF error raises when input( )  results end of file condition without reading any data or else 

returns empty string. Which means that there would be open parenthesis somewhere in the program and the line ends up without closing it.

Here is the example which shows EOF Error.


In this, parenthesis is not closed at end of print statement which results in EOF error.




Correct code of program:

Close the parenthesis each time when it is opened.



The output of above program-





Comments