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 <rep...@bugs.python.org> <http://bugs.python.org/issue31037> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com