Chapter 4 Quiz: Collections

5 questions · 70% to pass

1. Which collection type is immutable?

2. How do you add an item to the end of a list?

3. A dictionary stores items in key-value pairs.

4. What will len({1, 2, 2, 3}) return?

5. Which method returns the value for a key, or a default if the key is missing?

Back to Chapter