Created
August 18, 2020 15:30
-
-
Save ycui1/6a8c1cf9fd80bd54a84d04036a19c939 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
>>> sorted(grades, key=lambda x: x['score']) | |
[{'name': 'Ashley', 'score': 94}, {'name': 'David', 'score': 96}, {'name': 'John', 'score': 97}, {'name': 'Jennifer', 'score': 98}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment