Message262076
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 (>>>). |
|
Date |
User |
Action |
Args |
2016-03-20 13:46:10 | SilentGhost | set | recipients:
+ SilentGhost, docs@python, Erwin Berkouwer |
2016-03-20 13:46:10 | SilentGhost | set | messageid: <1458481570.56.0.452768562452.issue26594@psf.upfronthosting.co.za> |
2016-03-20 13:46:10 | SilentGhost | link | issue26594 messages |
2016-03-20 13:46:10 | SilentGhost | create | |
|