Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sorting tuples

sorted_by_second = sorted(data, key=lambda tup: tup[1])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sorting #tuples
ADD COMMENT
Topic
Name
9+6 =