Message262072
being totally new to Python, I tried actually doing the examples from the beginners guide (real RTFM ;-)
however I fail at the first example, with an error message that I don't understand. please clarify. attached file is screenprint from documentation, below what's on my screen (note I keyed in the example, no copy/paste, but I think correctly)
Also adding spaces or a tab doesn't get rid of the error.
C:\Users\erwin>python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> the_world_is_flat = True
>>> if the_world_is_flat:
... print("be careful not to fall off!")
File "<stdin>", line 2
print("be careful not to fall off!")
^
IndentationError: expected an indented block |
|
Date |
User |
Action |
Args |
2016-03-20 12:38:56 | Erwin Berkouwer | set | recipients:
+ Erwin Berkouwer, docs@python |
2016-03-20 12:38:56 | Erwin Berkouwer | set | messageid: <1458477536.83.0.48504738422.issue26594@psf.upfronthosting.co.za> |
2016-03-20 12:38:56 | Erwin Berkouwer | link | issue26594 messages |
2016-03-20 12:38:56 | Erwin Berkouwer | create | |
|