eof exception code example
Example: eof error meaning
# EOFError happens when input() has no data
>>> data = input("Write something ")
Write something
# if I quit program before writing something,
# the program reports EOFError because there is no input