DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python sort list by last element
output = sorted(my_list, key=lambda x: x[-1])
PREVIOUS
NEXT
Tagged:
#python
#sort
#list
#element
ADD COMMENT
Topic
COMMENT
Name
6+6 =
Submit