Answers for "eof error meaning"

1

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
Posted by: Guest on December-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language