[Tutor] running program in terminal

Matt Hite lists at beatmixed.com
Mon Sep 24 23:24:53 CEST 2012

On Mon, Sep 24, 2012 at 9:41 AM, Benjamin Fishbein
<bfishbein79 at gmail.com> wrote:
> Hello. I can run programs in IDLE but when I try to do it in a terminal or with textwrangler, it usually just logs out and says it's completed, but the program hasn't been run. This is particularly so when the program uses urllib. I'm using OS X.

Try adding this to the end:

x = raw_input("Waiting for you to hit enter...")

More information about the Tutor mailing list