aghazalp wrote: > hi guys, > this would be the most basic question ever...I am not a programmer but > I am trying to learn programming in python...I was reading John Zelle's > text book and instructed me to make .py file and save it on the desk > top...then it said close the python GUI and double click on the icon of > the I just made and that should run the program...well, the good news > is that it does but when I input a number for calculation and press the > enter key the program closes...Does any one know what the problem is?
The DOS box closes as soon as the program terminates. To prevent that, add a call to raw_input() at the end of your script. Python will then prompt you for input, and therefore the window will stay open. Georg -- http://mail.python.org/mailman/listinfo/python-list