+ 1

wht this EOF Error means.??

30th Jul 2016, 6:51 PM
Rishabh
4 Antworten
+ 2
EOF : end of file
30th Jul 2016, 10:17 PM
Anita Gulyasne Goldpergel
Anita Gulyasne Goldpergel - avatar
+ 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 👍)
25th Aug 2016, 1:11 AM
Michael
0
EOF - End of file The error occurs when input() reaches an end of line condition without having read any data.
30th Jul 2016, 10:23 PM
Gershon Fosu
Gershon Fosu - avatar
- 9
Dunno I'm not interested for some reason 😴
30th Jul 2016, 6:55 PM
Deepasha