I get EOF error for taking input in a while loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I get EOF error for taking input in a while loop

My while loop with an integer casted input keep getting a failure on the input line. Any ideas? https://code.sololearn.com/cHQoYsNBegsB/?ref=app

14th Feb 2022, 11:10 PM
Renz Original
3 Answers
14th Feb 2022, 11:14 PM
Per Bratthammar
Per Bratthammar - avatar
+ 3
Sololearn playground is not interactive. You've to provide all the inputs in the pop-up box before running. So try this in some other interactive compiler, it'll run fine.
15th Feb 2022, 2:26 AM
Rishi
Rishi - avatar
+ 2
Hello, i tried your code on an online python editor and it works perfectly.
14th Feb 2022, 11:40 PM
Ferdaws Kukcha
Ferdaws Kukcha - avatar