Collections Module

The collections module implements several container types in addition to the standard Python built-in collections, dict, list, set and tuple.

Below are some of the specialized data types provided by this module.

Collections Module

A dict subclass that stores counts for hashable objects.
Tracks the order in which items were added.


Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn Python on Codecademy