Okay. When I try to run the script from the terminal, it still doesn't work. 
Here is a screenshot.

<<inline: Screen shot 2011-02-26 at 12.47.02 AM.png>>

What am I doing wrong?


On Feb 25, 2011, at 6:46 PM, Alan Gauld wrote:

> 
> "Justin Bonnell" <jwbonne...@gmail.com> wrote
> 
>> Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) [GCC 4.2.1 (Apple Inc. 
>> build 5664)] on darwin
>> Type "copyright", "credits" or "license()" for more information.
> 
> The >>> prompt means you are already inside Python.
> You can type Python commands at the >>> prompt, things like
> 
>>>> print "Hello"
> 
> But you cannot ruin a program from inside the >>> prompt (well, you can, but 
> its more complicated than sane people want to bother with! :-)
> 
> You run a Python script from the OS Terminal prompt:
> 
> $ python hello.py
> 
>> Shouldn't I be able to run hello.py from the IDLE interpreter?
> 
> You can't run it from the >>> prompt in IDLE but....
> What you can do is open the file for editing and then run that file using the 
> menu commands, then the output will show up in the interpreter window.
> 
I get how to do this now^^
> HTH,
> 
> -- 
> Alan Gauld
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to