@pythonnotes
python notes
3 years
Both list.sort() and sorted() have a key parameter to specify a function to be called on each list element prior to making comparisons.
0
1
1