4 Simple Questions About Python/IDLE
Larry Bates
larry.bates at websafe.com
Thu Sep 7 10:58:19 EDT 2006
Omar wrote:
> thanks.
>
> i have saved and double clicked as suggested. when I save and double
> click a simple "hello program", the b&w python shell briefly comes up,
> then disappears. is this how it should work?
>
Yes, that is how it should work. Program is doing what you
told it to. print "hello program" and exit (which closes the window).
If you want it to pause put something after the print like:
t=raw_input('Hit return to continue')
This way the program will pause until you hit return.
Good luck.
-Larry Bates
More information about the Python-list
mailing list