+ 2
Is there any wait command in python that I can use?
7 odpowiedzi
+ 3
Thx soooooooo much
+ 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.
+ 2
from time import sleep
sleep(1)
This will make the program sleep for one second. Is this what you're looking for?
+ 2
Didnt work
+ 2
Anna im not sure if that is one way, but what i use is this -
import time
time.sleep (1)
+ 2
Anna yea i tried your way, works fine, i didn't realise that sololearn isnt interactive, but thanks for clarifying
+ 1
K thx