Python Practice › Collections Programs

Python Collections Programs with Solutions

20 programs18 easy2 medium0 hard

20 programs for the collections module: Counter for counting, defaultdict for grouping, deque for queues and sliding windows, namedtuple for records, OrderedDict for an LRU cache and ChainMap for layered settings.

Advertisement
Before you start

Read the Collections lesson first if the topic is new to you.

All programs

Leave a Comment