Dictionaries map hashable keys to values and preserve insertion order (guaranteed since Python 3.7).
python
wallet = {"address": "0xabc", "balance": 3.5}
wallet["balance"] += 1
wallet.get("nonce", 0) # default if missing
"address" in wallet # membership test on keysIterate with `.items()`, `.keys()`, or `.values()`:
python
for key, value in wallet.items():
print(key, value)Dict comprehensions mirror list comprehensions: `{k: v * 2 for k, v in prices.items()}`.