📢Learn a Python Trick Today! 🐍

:loudspeaker:Learn a Python Trick Today! :snake:

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.