Absolute beginner
Simon Brunning
simon at brunningonline.net
Wed Dec 30 07:00:26 EST 2009
2009/12/30 <lucbonne at hotmail.com>:
> At a dos-prompt :
>
> Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> print "Hello"
> File "<stdin>", line 1
> print "Hello"
> ^
> SyntaxError: invalid syntax
You are using Python 2 syntax, but a Python 3 interpreter. So, either
download an earlier version of Python, or use a tutorial which covers
Python 3.
Rather unlucky timing, really - Python 3 is the first non-trivially
backward incompatible version for a very long time - at least a decade
and a half.
--
Cheers,
Simon B.
More information about the Python-list
mailing list