1import time
2
3# Wait for 5 seconds
4time.sleep(5)
5
6# Wait for 300 milliseconds
7# .3 can also be used
8time.sleep(.300)
9
1# You need to import time first
2import time
3#now you have time you can make time wait/sleep
4time.sleep(10)
5#time will wait/sleep for 10 seconds
1#Wait in python
2#Module required - time
3import time
4#Wait in for the time you put
5time.sleep(0.5)
6print('Wait in python')
1# Example code
2
3import time
4
5time.sleep(3)
6print("Three seconds is over!")
7
8
9
10# Tutorial
11
12import time # This is mandatory to make this work.
13
14time.sleep(x) # x being the time you want the system to wait, in seconds.
15# Code you want to execute goes here.