command prompt pause in python

Solutions on MaxInterview for command prompt pause in python by the best coders in the world

showing results for - "command prompt pause in python"
Yohann
13 Feb 2017
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()