DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python order list by multiple index
sorted_list = sorted(a_list, key = lambda x: (x[1], x[0]))
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#python
#order
#list
#multiple
#index
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit