+ 1
This code runs perfectly on Pydroid but gives me an eof error here - thanks for your input
6 Respuestas
+ 3
You don't even prompt it. On Code Playground when you run a program and it needs an input at some point the system asks you for it right when you click run
+ 2
cyk Markus Kaleton How can I prompt for input before the code runs if the input is part of the program?
+ 2
Thanks cyk - basically, it's a limitation of the ide they use (similar to Sublime text editor, on Mac OS at least). Thanks for clarifying!
+ 1
Are you getting input from the user while the code is running? If so, you will get an EOF error here cause in Code Playground the user cannot feed the program inputs while it is running, only once at the beginning
+ 1
you have to submit your inputs before the code runs. this kind of test isnt really suited for sololearn
+ 1
I did run it with 4 as input at the beginning and it worked fine