help with program

Steven D'Aprano steve at pearwood.info
Sat Mar 26 22:48:08 EDT 2016


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




More information about the Python-list mailing list