[issue31037] Results in section 4.4 break and continue

Zachary Ware report at bugs.python.org
Tue Jul 25 11:56:15 EDT 2017


Zachary Ware added the comment:

Take a look at the statement immediately following the example:

"(Yes, this is the correct code. Look closely: the else clause belongs to the for loop, not the if statement.)"

The example is correct, and is introducing the concept of an 'else' clause on a for loop.  This is very much not the first report of this that we've had, though; perhaps the 'look closely' admonition should be moved before the example?

For future reference, please copy and paste the text of your tests rather than a screenshot; not all participants can see the screenshot.

----------
nosy: +zach.ware

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


More information about the Python-bugs-list mailing list