Category: Learn Python

Applications of Python

One of the reasons for the popularity of the Python programming language is its wide range of applications. Learning a programming language, you should know it’s uses. Python’s simplicity, portability,...

Python Modules – Types and Examples

A module is a file with the extension .py and contains executable Python or C code. A module contains several Python statements and expressions. We can use pre-defined variables, functions,...

Multiple Inheritance in Python

Unlike other languages, Python supports multiple inheritance. It is one of the five types of inheritance in Python. The ability of a class to inherit more than one class is...

Python Operator Overloading

Modifying the behavior of an operator by redefining the method an operator invokes is called Operator Overloading. It allows operators to have extended behavior beyond their pre-defined behavior. Let us...

Objects in Python with Examples

An object in Python is a collection of data and methods. Python is an Object-Oriented Programming Language. So, almost everything is an object in Python. Objects represent real-world entities.  For...

Constructor in Python with Examples

In Object-Oriented Programming, a constructor is a special kind of method used to instantiate an object. The primary objective of Constructors is to assign values to the instance attributes of...