Sorting iterables with Python's sorted function

Published: 06 May 2025
on channel: Python Morsels
182
6

The list "sort" method sorts lists in-place, but the built-in "sorted" function can sort any iterable!

Article at https://pym.dev/sorting-in-python/

More #Python screencasts at https://pym.dev/screencasts/

00:00 The list "sort" method
00:29 The built-in "sorted" function
01:04 Sorting in reverse (descending order)
01:22 Sorting by a "key" function
02:20 Use "sorted" to sort any iterable


On this page of the site you can watch the video online Sorting iterables with Python's sorted function with a duration of hours minute second in good quality, which was uploaded by the user Python Morsels 06 May 2025, share the link with friends and acquaintances, this video has already been watched 182 times on youtube and it was liked by 6 viewers. Enjoy your viewing!