[Tutor] Newbie

Sean 'Shaleh' Perry shaleh@valinux.com
Fri, 09 Feb 2001 09:39:27 -0800 (PST)

On 09-Feb-2001 Christopher Bemis wrote:
> I am a complete newbie when it comes to programming. I have been learning
> Python with "Sam's teach yourself Python in 24 hours". Here's my
> question....When I type the helloworld.py program in Notepad and then try to
> run it from Command Line, I get a flash of something that looks like a DOS
> window, is this supposed to be the program? 

yep.  What happens is it launches a DOS window, runs the app, then the app
quits and the window goes with it.  What you need to do is add a 'Press enter
to finish' section at the end of the app.  I bet if you read just a little
further they explain this.

Just add a line:

raw_input('Hit enter to exit')