[docs] Your tutorial isn't working
Georg Brandl
georg at python.org
Tue Mar 27 08:04:42 CEST 2012
On 20.03.2012 02:44, Daniel Oskarsson wrote:
> So i read through your first introduction page, ok no problem sounds cool, etc,
> etc... ok then i go to page 2... and none of the suggested commands are working.
> not even a little bit. only thing that works when i type it into the python
> command line thingy is "import sys" which doesn't help me very much when i'm
> only halfway to understanding how to use it. and then i got to this part.
>
>>>> the_world_is_flat = 1
>>>> if the_world_is_flat:
> ... print "Be careful not to fall off!"
> ...
> Be careful not to fall off!
>
> This is what happens in GUI (something similar happens in command line):
>
>>>> the_world_is_flat = 1
>>>> if the_world_is_flat:
> print "Be careful not to fall off!"
>
> SyntaxError: invalid syntax
>
> So whats the deal? the c++ tutorials, and the javascript tutorials at least fucking work.
[...]
Hi Daniel,
relax. Please use the version of the docs or tutorial that belongs to your
version of Python. In this case, it looks like you have Python 3 and are
looking at the Python 2 tutorial.
The Python 3 docs are at docs.python.org/py3k
cheers,
Georg
More information about the docs
mailing list