How would I do a \"hit any key\" (or grab a menu option) in Python?
A couple years ago I wrote a small library to do this in a cross-platform way (inspired directly by John Millikin's answer above). In addition to getch, it comes with a pause function that prints 'Press any key to continue . . .':
pause()
You can provide a custom message too:
pause('Hit any key')
If the next step is to exit, it also comes with a convenience function that calls sys.exit(status):
pause_exit(status=0, message='Hit any key')
Install with pip install py-getch, or check it out here.