DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
sort 2d list python
>>> sorted(li,key=lambda l:l[1]) [[1, 0.23], [5, 0.27], [4, 0.31], [2, 0.39]]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sort
#list
#python
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit