0

How do you let the script wait for 5 sec?

7th Feb 2019, 9:30 AM
Jorrinkie
Jorrinkie - avatar
2 odpowiedzi
+ 6
from time import sleep sleep(5) Won't work in Sololearn though because a code that takes more than five seconds to execute will just timeout
7th Feb 2019, 9:33 AM
Anna
Anna - avatar
0
import time time.sleep(5) # Delays for 5 seconds. You can also use a float value. Anna had it sussed out though :)
7th Feb 2019, 11:58 AM
peter
peter - avatar