Created
June 21, 2015 02:52
-
-
Save kenKanata56/53f122f9d3b6627eee2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
l1 = [(9,5),(8,4),(3,8),(2,0)] | |
l2 = sorted(l1,key=lambda x:x[1]) | |
print l2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment