Quiz on Python Collections Module



1. What module provides specialized container datatypes in Python?
2. Which of the following is NOT a type of collection in the collections module?
3. What is the purpose of a defaultdict?
4. What does the namedtuple function do?
5. Which collection type is optimized for fast appends and pops from either end?

Advertisements