Safa Mulani

An enthusiast in every forthcoming wonders!

Polymorphism in Python

Polymorphism means having vivid or different forms. In the programming world, Polymorphism refers to the ability of the function with the same name to carry different functionality altogether. It creates a structure that can use many forms of objects. This permits functions/arguments to use entities of different types at different times. In object-oriented programming, Polymorphism

Polymorphism in Python Read More »

Operator Overloading in Python

Operator Overloading is the phenomenon of giving alternate/different meaning to an action performed by an operator beyond their predefined operational function. Operator overloading is also called Operator Ad-hoc Polymorphism. Python operators work for built-in classes. But the same operator expresses differently with different types. For example, The + operator will perform arithmetic addition on two numbers,

Operator Overloading in Python Read More »

Calculator Program in Python

Python programming is a great tool to evaluate and make manipulations. In this article, We will be learning a simple command-line calculator program in Python 3. We’ll be using mathematical operators, Conditional statements, functions and handle user input to make our calculator. Prerequisites The system should have Python 3 installed on the local computer and have a

Calculator Program in Python Read More »

Object-Oriented Programming in Python

Object-oriented programming (OOP) refers to the software design wherein programmers define the data type of a data structure, and the types of functions that can be applied to the data structure. This paradigm provides functionalities and behavior pattern to the structure of data. This paradigm maps and models real-world things together and describes a relationship

Object-Oriented Programming in Python Read More »

Inheritance in Python

Inheritance at a glance! In the world of Object-Oriented Programming (OOP), Inheritance refers to the mechanism of the capability of a class to derive or extend the properties from another class in the run. This property enables the derived class to acquire the properties or traits of the base class. Inheritance is considered one of

Inheritance in Python Read More »