0
Can anybody help me with my problem?
2 Answers
+ 4
Did you have problem with this code in the sololearn code playground?
In code playground scripts are compiled/executed on server side, so user inputs have limitation that you need to send all required input for the whole execution of the script at once at beginning. If your script will ask user one numbers and later a word, write them with new line for each, but in the only alone field prompted at start, as:
42
forty-two
... the script will read input from this rather from real standard input and will throw an EOF error if not enough data is provided.
The output work in a same kind of way, buffering it on server side and sending it at once at end of script to be displayed to user...
Unfortunally, these in/output limitations doesn't allow real interactive script to run on playground (such as a guess number game) ^^
+ 1
What is the problem?