znagadeon
10/24/2017 - 7:59 AM

python code snippets

python code snippets

students = [{'name': 'John', 'score': 80}, {'name': 'Jane', 'score': 70}]
students.sort(key=lambda x:x['score'])