+ 1

Guys, how do u put input in a while loop without making it saying EOF?

19th Aug 2021, 8:57 AM
Ervan
Ervan - avatar
2 Réponses
+ 3
word = input() while word != "end": print(word) word = input() #Remember that Sololearn requires all inputs to be entered before running
19th Aug 2021, 9:03 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
With the help of exception handling In Python Core tutorial, Visit "Exceptions & Files" chapter ... https://www.sololearn.com/learn/Python/2440/
19th Aug 2021, 9:02 AM
Ipang