+ 3
Why does .sleep() not work on the code playground?
Hey guys, I tried this: from time import sleep print(" Hey, Wake Up!") sleep(1) print(" zzz...") But it doesnt work here. Hey, Wake Up! and zzz.... appear in the same moment. What can I do here to create a delay, if .sleep() doesnt work or is it just me?
4 Answers
+ 5
Code Playground have at least one important limitation in handling in/output... The script is executed on server side, so you are restricted to uninterractive script ( which doesn't require real time user interation ), as ALL inputs must be send at once just before executing script, and output are received only at once just after the script end ^^
0
alright thank you :)