Hey everyone,
I have a list of dictionaries, and I want to sort it by one of the dictionary 
keys. Here's an example:

people = [
    {'name': 'Alice', 'age': 25},
    {'name': 'Bob', 'age': 20},
    {'name': 'Charlie', 'age': 23}
]

I want to sort this list by the 'age' key in ascending order. What’s the best 
way to do this in Python?

Thanks for any advice!

https://gorlockthedestroyer.org/
_______________________________________________
Isbg mailing list -- isbg@python.org
To unsubscribe send an email to isbg-le...@python.org
https://mail.python.org/mailman3/lists/isbg.python.org/
Member address: arch...@mail-archive.com

Reply via email to