Skip to content
Rezha Julio
Go back

Get more with collections!

1 min read

In addition to Python’s built-in data structures (such as tuples, dicts, and lists), a library module called collections provides data structures with additional features, some of which are specializations of the built-in ones.

Import the module:

import collections

Specialized container datatypes are usually dict subclasses or wrappers around other classes like lists, tuples, etc.

Notable implementations are :


Related Posts


Previous Post
Enhance your tuples
Next Post
There is more to copying