lis = [{"name": "Nandini", "age": 20},
       {"name": "Manjeet", "age": 20},
       {"name": "Nikhil", "age": 19}]
print(sorted(lis, key=lambda i: (i['age'], i['name'])))

13a875a9d8c052ef701ae5b6f9a439ae78a1dd6e
<mask token>

<mask token>
print(sorted(lis, key=lambda i: (i['age'], i['name'])))

lis = [{'name': 'Nandini', 'age': 20}, {'name': 'Manjeet', 'age': 20}, {
    'name': 'Nikhil', 'age': 19}]
print(sorted(lis, key=lambda i: (i['age'], i['name'])))

lis = [{"name": "Nandini", "age": 20},
       {"name": "Manjeet", "age": 20},
       {"name": "Nikhil", "age": 19}]
print(sorted(lis, key=lambda i: (i['age'], i['name'])))
