mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-24 04:21:15 +00:00
Sorting a list of tuples by the last last elements of the tuple
This commit is contained in:
parent
b6f54765e7
commit
b87aec3ee9
|
@ -1,5 +1,5 @@
|
||||||
# Sebastian Raschka 09/02/2014
|
# Sebastian Raschka 09/02/2014
|
||||||
# Sorting a list of tuples by the last last elements of the tuple
|
# Sorting a list of tuples by the last elements of the tuple
|
||||||
|
|
||||||
|
|
||||||
# Here, we make use of the "key" parameter of the in-built "sorted()" function
|
# Here, we make use of the "key" parameter of the in-built "sorted()" function
|
||||||
|
|
Loading…
Reference in New Issue
Block a user