Lesson 13 Quiz: Dictionaries: Labeled Storage

Self-check only. Your answers stay in your browser — nothing is submitted or graded. Pick an answer for each question, then press Check my answers to see the answer key and explanations.

1. What is a dictionary, and what are its two parts?

2. How is a dictionary different from a list?

3. What happens if you ask for a key that does not exist?

4. What is the difference between `student["age"] = 10` and `student["pet"] = "Biscuit"`?

5. Why is `str(value)` needed in the loop that prints `key + ": " + str(value)`?

← Back to Lesson 13 · Enroll free in the full course