ID EN
Built-in Exceptions

EOFError

Python 3.11

Raised when the input() function hits an end-of-file condition (EOF) without reading any data. (N.B.: the io.IOBase.read() and io.IOBase.readline() methods return an empty string when they hit EOF.)

Syntax

PYTHON
exception EOFError

See Also

input() io.IOBase.readline()