+ 1
wht this EOF Error means.??
4 Antworten
+ 2
EOF : end of file
+ 2
An EOFError is when the code asks for input but no input is given. A simple when to get around this problem is useing a try, except block. Which is similar to try catch blocks in other languages.
try:
name = input("Enter your name")
except EOFError:
name = "Michael"
Hope this helps! (If it does dont hesitate to hit 👍)
0
EOF - End of file
The error occurs when input() reaches an end of line condition without having read any data.
- 9
Dunno I'm not interested for some reason 😴