0
Q:

wait function python

import time
 
# Wait for 5 seconds
time.sleep(5)
 
# Wait for 300 milliseconds
# .3 can also be used
time.sleep(.300)
16
import time
#Waits 1 second
time.sleep(1)
15
#Wait in python
#Module required - time
import time
#Wait in for the time you put
time.sleep(0.5)
print('Wait in python')
2
from time import sleep

>>> sleep(4)
0

New to Communities?

Join the community