[issue44199] code example index error in tutorial controlflow
Eric V. Smith
report at bugs.python.org
Thu May 20 21:26:55 EDT 2021
Eric V. Smith <eric at trueblade.com> added the comment:
The example is correct. The result is sorted by the second item (index=1) of each tuple:
four
one
three
two
Maybe the text could make it more clear that that's the desired output.
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44199>
_______________________________________
More information about the Python-bugs-list
mailing list