john wrote:

> print "hello world" #this is just something to say

>>>> /Users/jonathan/Documents/hello.py
>   File "<stdin>", line 1
>     /Users/jonathan/Documents/hello.py
>     ^
> SyntaxError: invalid syntax
> 
> what am i doing wrong?

The >>> prompt indicates that you have already started the interactive 
interpreter by typing

$ python

This is a great way to test Python statements interactively -- type and 
explore Python's response.

However, to run a script you have to provide the script name on the 
commandline

$ python /Users/jonathan/Documents/hello.py


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

Reply via email to