Skip to content

Tag Archives: Python collections-module

Dictionary in Python is an unordered collection of data values that are used to store data values like a map. Unlike other Data Types that… Read More
Python contains a container called “ChainMap” which encapsulates many dictionaries into one unit. ChainMap is member of module “collections“. Example: # Python program to demonstrate  … Read More
Python supports a type of container like dictionaries called “namedtuple()” present in the module, “collections“. Like dictionaries, they contain keys that are hashed to a… Read More
Deque (Doubly Ended Queue) in Python is implemented using the module “collections“. Deque is preferred over a list in the cases where we need quicker… Read More
An OrderedDict is a dictionary subclass that remembers the order that keys were first inserted. The only difference between dict() and OrderedDict() is that: OrderedDict… Read More
Counter is a container included in the collections module. Now you all must be wondering what is a container. Don’t worry first let’s discuss about… Read More

Start Your Coding Journey Now!