Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105788 > unrolled thread

help with program

Started byJerry Martens <jmartens2@ameritech.net>
First post2016-03-26 20:38 +0000
Last post2016-03-27 13:48 +1100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  help with program Jerry Martens <jmartens2@ameritech.net> - 2016-03-26 20:38 +0000
    Re: help with program Steven D'Aprano <steve@pearwood.info> - 2016-03-27 13:48 +1100

#105788 — help with program

FromJerry Martens <jmartens2@ameritech.net>
Date2016-03-26 20:38 +0000
Subjecthelp with program
Message-ID<mailman.58.1459031988.28225.python-list@python.org>
hi im trying to run this program and it opens a screen really ast and closes it faster withou any results. im totally a noob. everything i google is confusing. do i need to place this is in a folder or just run from command line? i have the latest version of python. im running win 7. any help would be appreciated! or could you please point me to a good forum for total noobs?thank you for your time and effort!

[toc] | [next] | [standalone]


#105802

FromSteven D'Aprano <steve@pearwood.info>
Date2016-03-27 13:48 +1100
Message-ID<56f749e9$0$1612$c3e8da3$5496439d@news.astraweb.com>
In reply to#105788
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web