+ 1

Anytime i write a code that has a loop in it that requires user input....it just gives me an EOF error!

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

30th Jan 2020, 4:04 PM
Wint3r
Wint3r - avatar
8 Antworten
+ 4
yes... although you linked no code one can imagine your loop😂 now... fun away if user enters stop, we stop. go = "go" while go!= "stop" go = input("say stop if stop") now if u run... go go on stop ..... submit
30th Jan 2020, 4:14 PM
Oma Falk
Oma Falk - avatar
+ 6
Oma Falk That was the solution of the problem. 😁
30th Jan 2020, 4:41 PM
A͢J
A͢J - avatar
+ 4
Yes because here on Sololearn Playground one by one input will not work. So you have to take input in seperate line like 3 //number of users AB BC CD
30th Jan 2020, 4:12 PM
A͢J
A͢J - avatar
+ 3
🤔🤔🤔 that was the solution and not the problem 🤔🤔🤔
30th Jan 2020, 4:27 PM
Oma Falk
Oma Falk - avatar
30th Jan 2020, 4:35 PM
Oma Falk
Oma Falk - avatar
30th Jan 2020, 5:37 PM
Oma Falk
Oma Falk - avatar
+ 1
Oma Falk aaaaa! SL cant handle such inputs right?
30th Jan 2020, 4:27 PM
Wint3r
Wint3r - avatar
+ 1
Oma Falk ok...i see it now..thank you guys..
30th Jan 2020, 4:39 PM
Wint3r
Wint3r - avatar