[issue26594] Tutorial example IndentationError?
SilentGhost
report at bugs.python.org
Sun Mar 20 09:46:10 EDT 2016
SilentGhost added the comment:
Erwin, you could clearly see in the screenshot that the print call is indented, i.e. it starts in the 5th column, under letter "h" of the_world_is_flat. In what you've typed here one can clearly see that "p" of print is under "i" of if (the 1st column) and is therefore not indented. Indentation is an important part of Python syntax.
To properly copy this example from documentation into interpreter you could click on button in the top right corner of the code block - it's cut off in your screenshot, but it looks like a python prompt (>>>).
----------
nosy: +SilentGhost
resolution: -> not a bug
stage: -> resolved
status: open -> closed
type: -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26594>
_______________________________________
More information about the Python-bugs-list
mailing list