Dictionaries store key-value pairs: {'name': 'Alice', 'age': 30}. Access with dict['key'] or dict.get('key', default). Iterate with .items() for both keys and values. Ordered from Python 3.7 onwards.
Python Dictionaries
user = {"name": "Alice", "age": 28, "active": True}
print(user["name"]) # Alice
print(user.get("email", "")) # safe access
user["email"] = "a@b.com" # add/update
del user["active"]
for key, val in user.items():
print(f"{key}: {val}")
# Dict comprehension
squares = {x: x**2 for x in range(5)}