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# Don't use os.system("pause"), it is very slow because it needs to create
2# an entire shell process. Use this instead:
3
4import getch
5
6def pause():
7 print("Press any key to continue . . . ")
8 getch.getch()