by Shahinur | Sep 7, 2019 | Python
Similar to inheritance, polymorphism is an important paradigm in object-oriented programming. Polymorphism in object-oriented programming refers to the ability of different classes to be treated as instances of the same class through a common interface. Let’s...
by Shahinur | Sep 6, 2019 | Python
Inheritance is a unique feature of any object-oriented programming language. It is a simple concept. Consider this: your father owns a car, which means (according to Bangladeshi customs) it is also your car, even though you might own another car yourself. Here, your...
by Shahinur | Aug 30, 2019 | Python
Object-Oriented Programming (OOP) is a significant programming paradigm in programming languages. In Python, everything is an object. For code reusability, OOP is unparalleled. In this context, a class is the fundamental structural unit. Class A class acts as a...
by Shahinur | Aug 23, 2019 | Python
A module in Python is an object that acts as a reference library. In short, each module is a file where various classes, functions, or variable definitions are stored. When developing large software, it is often necessary to perform different tasks, and using modules...
by Shahinur | Aug 16, 2019 | Python
A lambda function is essentially an anonymous or unnamed function. In the previous function section, we saw that the def keyword is used to define a function. However, lambda functions do not require this. Let’s see an example: # This program is an example of lambda...
by Shahinur | Aug 12, 2019 | Python
In programming, recursion is an important topic. When a function calls itself, it is called recursion. Python allows the use of recursion. When thinking about recursion, the first example that comes to mind is calculating the factorial of a number. Let’s look at...
Recent Comments