0
In Python on Sololearn , does "import time" not work or am I doing some thing wrong?
Say, for instance, I write "import time print("1") time.sleep(4) print("2")" It outputs "Time limit expired" Am I doing something wrong, does import not work in Sololearn or is it just for "import time" as it seems to work on Python when I run it but not Sololearn?
2 Answers
+ 1
It doesn't work on web based editors. It imports time, but it doesn't wait for the response, it prints an error instead of waiting for the 4 secs. The same happens with threading. It will work on idle though.