What is eof error in python?

Report





Upload Image







Report Form



Question: What is eof error in python?

Topics: python

Paste old question below.


Available Answers: 1


Answer #1#

1


A close look at the EOFError in Python, including a functional code sample showing how to handle user input in both Python 2 and Python 3. EOF stands for End Of File. As suggested by Wubao Li, you should use try/except when reading your input string, and if an EOF error has been risen you could set the check to an empty. I am unable to run any program in python 3 ide because of the EOF error on the first line itself while taking the input for the number of test cases. EOF error results usually in an online judge like CodeChef when an input is given by the system but the input reading line is not at the right place.

Report

Answered By:
Viti

Viti

San Francisco, United States

Only Logged in users can post reply.


More Questions


Login


Lost Password!

Create Account

Wait Processing...