Category Archives

Collections.UserList in Python

Python Lists are array-like data structure but unlike it can be homogenous. A single list may contain DataTypes like...

Collections.UserList in Python

Python Lists are array-like data structure but unlike it can be homogenous. A single list may contain DataTypes like...

Heap queue (or heapq) in Python

Heap data structure is mainly used to represent a priority queue. In Python, it is available using “heapq” module....

Heap queue (or heapq) in Python

Heap data structure is mainly used to represent a priority queue. In Python, it is available using “heapq” module....

Deque in Python

Deque (Doubly Ended Queue) in Python is implemented using the module “collections“. Deque is preferred over list in the...

Deque in Python

Deque (Doubly Ended Queue) in Python is implemented using the module “collections“. Deque is preferred over list in the...

Namedtuple in Python

Python supports a type of container like dictionaries called “namedtuple()” present in module, “collections“. Like dictionaries they contain keys...

Namedtuple in Python

Python supports a type of container like dictionaries called “namedtuple()” present in module, “collections“. Like dictionaries they contain keys...

ChainMap in Python

Python contains a container called “ChainMap” which encapsulates many dictionaries into one unit. ChainMap is member of module “collections“....

ChainMap in Python

Python contains a container called “ChainMap” which encapsulates many dictionaries into one unit. ChainMap is member of module “collections“....

Defaultdict in Python

Dictionary in Python is an unordered collection of data values that are used to store data values like a...

Defaultdict in Python

Dictionary in Python is an unordered collection of data values that are used to store data values like a...

OrderedDict in Python

An OrderedDict is a dictionary subclass that remembers the order that keys were first inserted. The only difference between...

OrderedDict in Python

An OrderedDict is a dictionary subclass that remembers the order that keys were first inserted. The only difference between...

Python Try Except

Error in Python can be of two types i.e. Syntax errors and Exceptions. Errors are the problems in a...

Python Try Except

Error in Python can be of two types i.e. Syntax errors and Exceptions. Errors are the problems in a...