[issue39705] Tutorial, 5.6 Looping Techniques, sorted() example

Eric V. Smith report at bugs.python.org
Fri Feb 21 04:35:41 EST 2020


Eric V. Smith <eric at trueblade.com> added the comment:

The code is converting to a set first, then calls sorted() on that set. So "apple" is removed when the set is created.

I'm not sure the example should throw in creating a set while it's talking about sorting.

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39705>
_______________________________________


More information about the Python-bugs-list mailing list