+ 3

"Seems like your program requires input" ?

"Seems like your program requires input" why a dialogue box titled with the double quoted line is coming on running the code in CODE PLAYGROUND

9th Jul 2018, 6:48 AM
Deepak Kumar
Deepak Kumar - avatar
4 Respuestas
+ 5
Code Playground does not provide a live console (at least not yet), so all input will have to be received prior to code compilation/interpretation. There is no way to alter the dialogue box.
9th Jul 2018, 7:28 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
can you provide Code , so community can help you
9th Jul 2018, 6:54 AM
Sudarshan Rai
Sudarshan Rai - avatar
0
At least for the Python 3 CODE PLAYGROUND, it seems that the parser just scans for "input" anywhere in the code, so if you have a variable named 'inputs' then even though you might not be calling the input function, the code playground will still ask for some. You can fix that by replacing your variable name that contains 'input' embeded in it with a different name. For example, I had a variable called 'inputs', and replaced it with 'ixputs'. That stopped the "seems like your program requires input" dialog from coming up
1st Oct 2018, 2:19 AM
Timothy Dollimore
Timothy Dollimore - avatar
- 1
It appear when your code that contain some instruction that request an input from user (at example input() in python, cin in C++, scanf in C etc) for emulate input
9th Jul 2018, 7:05 AM
KrOW
KrOW - avatar