Message296822
This is a bug in your code, not Python, and the error tells you how to fix it. You have to indent the block.
>>> while b < 1000:
... print(b, end=',')
... a, b = b, a+b
Remember to press TAB or spacebar inside indented blocks.
You should work through the tutorial.
https://docs.python.org/3/tutorial/index.html
By the way, you say page 16 of which documentation? Are you reading from a book? Which book? |
|
Date |
User |
Action |
Args |
2017-06-25 11:26:20 | steven.daprano | set | recipients:
+ steven.daprano, Vishal Devgn |
2017-06-25 11:26:20 | steven.daprano | set | messageid: <1498389980.64.0.935504519597.issue30753@psf.upfronthosting.co.za> |
2017-06-25 11:26:20 | steven.daprano | link | issue30753 messages |
2017-06-25 11:26:20 | steven.daprano | create | |
|