Guys, how do u put input in a while loop without making it saying EOF? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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