Mar-18-2024, 08:16 PM
(Mar-18-2024, 10:39 AM)Pedroski55 Wrote:
Dead_EyE: a very accurate shooter (and reader?)
Quote:You can also use the list.sort() method. It modifies the list in-place (and returns None to avoid confusion).
Seems, the "avoid confusion" part is not wholly true!
Explicit is better than implicit.
I've forgotten to post the link to the documentation: https://docs.python.org/3/library/stdtyp...#list.sort
But there I can't find the hint, that this method does return
None
.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!