💡 What You'll Learn

Dictionaries store data as key-value pairs. Use curly braces {} with keys to look up values quickly. Keys must be unique and immutable (strings, numbers).

dict_demo.py
1scores = {"Alice": 95, "Bob": 87}
2print(scores["Alice"]) # 95
3scores["Charlie"] = 92
📺 Student Scores Dictionary
Alice95
Bob87
Click to look up!

🎯 Your Challenges

1Add New Key
Add Charlie with score 92
2Update Score
Change Bob's score to 95
3Get Keys
List all student names using .keys()

📚 What You Learned