[Tutor] python 2.7.1
__peter__ at web.de
Thu Sep 6 11:10:01 CEST 2012
> print "hello world" #this is just something to say
> File "<stdin>", line 1
> SyntaxError: invalid syntax
> what am i doing wrong?
The >>> prompt indicates that you have already started the interactive
interpreter by typing
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
$ python /Users/jonathan/Documents/hello.py
More information about the Tutor