[issue30753] not able to execute print command on page 16 of documentation

Steven D'Aprano report at bugs.python.org
Sun Jun 25 07:26:20 EDT 2017


Steven D'Aprano added the comment:

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?

----------
nosy: +steven.daprano
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30753>
_______________________________________


More information about the Python-bugs-list mailing list