In Python, inheritance is a fundamental concept in object-oriented programming that allows you to create new classes based on existing classes. Each type of inheritance has a different way of structuring class relationships and code reuse. Let's explore these types of inheritance: Simple Inheritance Simple inheritance, also known as single inheritance, is the most basic … Continue reading Inheritance Explained – Python
Author: IamRavikiranT
Decorators Explained – Python
Decorators provide an elegant way to enhance the functionality of existing code without altering its structure. Understanding decorators is a crucial step towards mastering Python's expressive and flexible nature. In this article, we'll embark on a journey to demystify decorators and explore their power and usage. To gain a thorough understanding of decorators, it is … Continue reading Decorators Explained – Python
Closures Explained – Python
Introduction Closures in Python are a powerful concept that allows functions to retain access to variables from their enclosing scopes. In this article, we will explore the importance of closures, beginning with local functions, and delve into how Python stores closures. We will illustrate these concepts using a real-world example to demonstrate their practical application. … Continue reading Closures Explained – Python
Scope Explained – Python
Understanding basic concepts when working with any programming language gives you great confidence in working with it. Understanding how to access different types of variables is crucial for proper variable usage and avoiding naming conflicts. Scope in Python determines the accessibility and visibility of variables, functions, and objects by following certain scope rules. Before proceeding … Continue reading Scope Explained – Python
Staying Humble
Staying humble - as I believe - is the key to stay alive even after your death. Sometimes I wonder, does it mean that you are weak if you stay humble? The answer is a big NO. I believe when an individual excelled in life staying humble doesn't mean in any way that we are … Continue reading Staying Humble
timeit module
In this article, we will see about timeit module which can be used for performance testing for small functions. Example import timeit timeit.timeit(stmt="filter(None, [None. 2, 3, None, False, 4])", number=10000) stmt is the statement or code snippet to be executed number is the number of times to execute the statement You can also repeat a … Continue reading timeit module
Lambda Expressions
In python functions are defined using def keyword and the name of the function. After defining python allocates memory using the name and can be reused number of times based on the requirement. Python offers anonymous functions which can be used only once. These anonymous functions without out any name are referred as lambda expressions … Continue reading Lambda Expressions
Map & Filter
In this article, we will see about python map and filter inbuilt methods. In every functional programming you will come across these and is very important to know their usages. Map Map applies a function on every element in the iterable and yields the results. Syntax of map is as follows map(func, iterable...) Let's check … Continue reading Map & Filter
Favorite Books For Personality Development
Do not wait for someone to motivate you. You and YOU ALONE can pick yourself up and start moving forward, period. In this article, I am mentioning some of my favorite books that helped me in very tough times. They keep me motivated, helps me stay positive and optimistic. That is why I still turn … Continue reading Favorite Books For Personality Development
Favorite Inspirational Quotes
Below are my favorite inspirational quotes till now that made me realized there is so much to the life and Sky is the only limit. Whether you think you can - or you think you can't - you are right -- Henry Ford Nothing in this life is to be feared, it is only to … Continue reading Favorite Inspirational Quotes