What's EOFError? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
22nd Jul 2018, 9:28 AM
Sajad Rahmanian
Sajad Rahmanian - avatar
3 Answers
+ 2
if you want to do add operation your input should be like below. add 1 2 quit Note: quit at the end. Try like above you should not get EOF error.
22nd Jul 2018, 9:37 AM
$ยข๐Žโ‚น๐”ญ!๐จ๐“
$ยข๐Žโ‚น๐”ญ!๐จ๐“ - avatar
+ 5
https://docs.python.org/3/library/exceptions.html
22nd Jul 2018, 9:41 AM
Mert Yazฤฑcฤฑ
Mert Yazฤฑcฤฑ - avatar
+ 2
there is no problem in your code. You are running on sololearn server and your getting EOF error is due to not passing correct input.
22nd Jul 2018, 9:36 AM
$ยข๐Žโ‚น๐”ญ!๐จ๐“
$ยข๐Žโ‚น๐”ญ!๐จ๐“ - avatar