1import time
2print("This is how to pause a program")
3time.sleep(5)
4print("Did you saw that i slept for 5 seconds")
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()