Search
 
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
Name
1+9 =