- 6

Why time.sleep ...not work ?????

24th Sep 2017, 6:50 PM
‎وليد سوف‎
‎وليد سوف‎ - avatar
3 odpowiedzi
+ 4
Because you haven't provided much information here.
24th Sep 2017, 8:27 PM
Kunal Sharma
Kunal Sharma - avatar
+ 4
If you have the import working and you're trying it on SoloLearn: Your script will indeed sleep at the server but the connection is not interactive (instead it is "batch"). All sleep will do is use up some of the runtime window (it's < about 5 seconds) or cause "Time Limit Exceeded". You will not see Python sleep from the app, unless you run Python on your mobile directly.
24th Sep 2017, 11:54 PM
Kirk Schafer
Kirk Schafer - avatar
+ 3
try to import the module import time there is a lake of info. past the code that you are trying. if you are trying it in sololearn ide,maybe it will not work with it.
24th Sep 2017, 8:47 PM
Mohammed Chami
Mohammed Chami - avatar