08. Dictionaries
Key-value maps, update, loop items
Goals:
- Dict create
- Key se value
- Update + iterate
1. Dictionary = labeled boxes
List index 0,1,2… se access karti hai.
Dict key se access karti hai — jaise form fields: name, age.
Keys unique hone chahiye (hashable). Values kuch bhi ho sakti hain.
Live practice 1 — Student record
Keys add/change karke dekho.
Live practice 2 — Loop keys
items() se pair print.