help with program
Steven D'Aprano
steve at pearwood.info
Sat Mar 26 22:48:08 EDT 2016
More information about the Python-list mailing list
Sat Mar 26 22:48:08 EDT 2016
- Previous message (by thread): help with program
- Next message (by thread): repeat items in a list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 27 Mar 2016 07:38 am, Jerry Martens wrote:
> hi im trying to run this program and it opens a screen really ast and
> closes it faster withou any results.
Put this at the very end of your program:
# Python 2 version
raw_input('Press the Enter key to exit... ')
# Python 3 version
input('Press the Enter key to exit... ')
That will halt and wait for you to press the exit key before closing the
window.
--
Steven
- Previous message (by thread): help with program
- Next message (by thread): repeat items in a list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list