+ 2

Is there any wait command in python that I can use?

28th May 2019, 1:40 PM
Arian Montgomery
Arian Montgomery - avatar
7 Antworten
+ 3
Thx soooooooo much
28th May 2019, 1:43 PM
Arian Montgomery
Arian Montgomery - avatar
+ 3
Joel Xavier That's basically the same, however you're importing the whole time module, even if .sleep is the only function you really need. It's not wrong though Arian Montgomery It doesn't work in Sololearn because Sololearn isn't interactive. But it will work in any console/terminal/IDE.
28th May 2019, 2:08 PM
Anna
Anna - avatar
+ 2
from time import sleep sleep(1) This will make the program sleep for one second. Is this what you're looking for?
28th May 2019, 1:42 PM
Anna
Anna - avatar
+ 2
Didnt work
28th May 2019, 1:46 PM
Arian Montgomery
Arian Montgomery - avatar
+ 2
Anna im not sure if that is one way, but what i use is this - import time time.sleep (1)
28th May 2019, 2:02 PM
Pop
Pop - avatar
+ 2
Anna yea i tried your way, works fine, i didn't realise that sololearn isnt interactive, but thanks for clarifying
28th May 2019, 2:13 PM
Pop
Pop - avatar
+ 1
K thx
28th May 2019, 2:08 PM
Arian Montgomery
Arian Montgomery - avatar