Yearly Archives

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...

NZEC error in Python

While coding in various competitive sites, many people must have have encountered NZEC error. NZEC (non zero exit code)...

NZEC error in Python

While coding in various competitive sites, many people must have have encountered NZEC error. NZEC (non zero exit code)...

Defining Clean Up Actions in Python

Think of a task you will always want your program to do, whether it runs perfectly or raise any...

Defining Clean Up Actions in Python

Think of a task you will always want your program to do, whether it runs perfectly or raise any...

Built-in Exceptions in Python

All instances in Python must be instances of a class that derives from BaseException. Two exception classes that are...

Built-in Exceptions in Python

All instances in Python must be instances of a class that derives from BaseException. Two exception classes that are...

User-defined Exceptions in Python with Examples

Python throws errors and exceptions, when there is a code gone wrong, which may cause program to stop abruptly....

User-defined Exceptions in Python with Examples

Python throws errors and exceptions, when there is a code gone wrong, which may cause program to stop abruptly....

Python Exception Handling

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

Python Exception Handling

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