Mark Dickinson added the comment:
You're probably trying to run it under Python 2.5 or Python 2.6 instead of
Python 3.1. The line you show only makes sense for Python 3.x.
You code runs fine for me (using python3.1, on OS X 10.5).
--
nosy: +marketdickinson
resolution: -> works for m
New submission from John Van Praag :
My platform: Win XP.
Program fibo.py from the tutorial runs correctly in the interpreter.
When I run it from the command line I get the following error:
file "fibo.py" line 6
print(b, end=' ')
^
--
components: Windows
files: fibo.py
m