+ 1

I keep getting eof error in my output please help me know what's wrong

https://code.sololearn.com/cXmK8DqO2xa5/?ref=app

19th Mar 2020, 5:58 PM
QUEST
QUEST - avatar
12 Antworten
+ 2
Victor Okolie You need to break at the end of each if and elif block. The while loop is an infinite loop which needs to be broken out of, hence the reason while only quit will not bring EOFError. EOFError means end of file error. The console reads your input and process every data supplied, after the third input, the loop still continues, but no more data to be used by the console, hence the EOFError. https://code.sololearn.com/cyhDBB4eq9ZC/?ref=app check this out
19th Mar 2020, 10:02 PM
Kareem Basit Adeniyi
Kareem Basit Adeniyi - avatar
19th Mar 2020, 6:57 PM
Oma Falk
Oma Falk - avatar
+ 3
add 2 3 quit works perfectly Which case makes problems ?
19th Mar 2020, 6:03 PM
Oma Falk
Oma Falk - avatar
+ 3
You can't simply run codes that require interactive input in SoloLearn, it's rather tricky. See this code to better understand how SoloLearn uses input 👇 https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
19th Mar 2020, 6:24 PM
Ipang
+ 2
i get no eof with that data
19th Mar 2020, 6:07 PM
Oma Falk
Oma Falk - avatar
+ 2
Victor Okolie it is not your device. Last line of input must be quit.
19th Mar 2020, 6:39 PM
Oma Falk
Oma Falk - avatar
+ 1
no your code is okay when u run it, the last line of input must be quit
19th Mar 2020, 6:48 PM
Oma Falk
Oma Falk - avatar
0
That eof error statement below in the output I want it gone
19th Mar 2020, 6:05 PM
QUEST
QUEST - avatar
0
Eof error displayed in line 12
19th Mar 2020, 6:07 PM
QUEST
QUEST - avatar
0
You sure?....is it my device?😶
19th Mar 2020, 6:08 PM
QUEST
QUEST - avatar
0
Like If user_input=="quit": Break Should be the last code?
19th Mar 2020, 6:46 PM
QUEST
QUEST - avatar
0
Same this popped up in the output
19th Mar 2020, 6:55 PM
QUEST
QUEST - avatar