Learn a Python Trick Today!
Students, write a python script to efficiently sort a list of dictionaries based on a specific key. Use the sorted
function with a lambda function as the key argument. For instance, when sorting a list of ‘people’ dictionaries by their ‘age’, employ lambda x: x['age']
to extract and sort by age values.