Dictionary
Articles
- Create a dictionary in Python ({}, dict(), dict comprehensions)
- Add and update an item in a dictionary in Python
- Merge dictionaries in Python
- Remove an item from a dictionary in Python (clear, pop, popitem, del)
- Add an item if the key does not exist in dict with setdefault in Python
- Check if a key/value exists in a dictionary in Python
- Get a value from a dictionary by key in Python
- Get keys from a dictionary by value in Python
- Iterate through dictionary keys and values in Python
- Change a key name in a dictionary in Python
- Swap keys and values in a dictionary in Python
- Get maximum/minimum values and keys in Python dictionaries
- Set operations on multiple dictionary keys in Python
- Expand and pass a list and dictionary as arguments in Python
- Pretty-print with pprint in Python
- Sort a list of dictionaries by the value of the specific key in Python
- Extract specific key values from a list of dictionaries in Python