[Tutor] Simple question

Joseph J. Strout joe@strout.net
Sun, 10 Oct 1999 12:38:59 -0700


At 9:52 AM -0700 10/10/99, Oscar Chavez wrote:

>And it works fine, except for the way it has to be run. The only way I can
>make it run as a command line program is when I save it as an applet.

This is a platform-specific issue; there is no such thing as an "applet" in
the general Python world.  Maybe you're using a Mac?  Next time, please
specify.

>The problem is that as soon as it gives the answer, it quits by
>itself, not allowing the user to see the result. How can I make it to wait
>for, let's say a return, to quit?

I use:

	raw_input("[Press Return.]")

at the end of the program.

Cheers,
-- Joe

,------------------------------------------------------------------.
|    Joseph J. Strout           Biocomputing -- The Salk Institute |
|    joe@strout.net             http://www.strout.net              |
`------------------------------------------------------------------'