The vicious yet unavoidable trap of Self Calls and Infinite Loops

Illusion (


We may come across situations involving looping where we do not know the number of iterations required. In such situations, we end up using While loops rather than for loops. Yet another way of dealing with this situation is “Recursion”.

In this article, I am sharing the basic recursion implementation using Python. I was bored of looking at Factorial examples here and there across the internet. So thought of implementing the same based on Happy Numbers (sounds so cheerful, right ? I too am smiling right now typing this).

What is Recursion

Blending Cassandra with Python

Image Credits:, Color Crescent

What is Cassandra?

Apache Cassandra™ is a distributed NoSQL database that delivers continuous availability, high performance, and linear scalability that successful applications require.

Apache Cassandra is an open source, distributed NoSQL database that began internally at Facebook and was released as an open-source project in July 2008. Cassandra delivers continuous availability (zero downtime), high performance, and linear scalability that modern applications require, while also offering operational simplicity and effortless replication across data centers and geographies. …

The Pythonic way of dealing with MongoDB

Obviously, from the

SQL databases like MySQL, Oracle etc. follow a fixed schema per table. Schema refers to the number of columns and the type of data that is fed into the columns. Schema represents the structure of table with the SQL database. The issue with this approach is that, if we want to suddenly increase the number of columns, we need to create a whole new table altogether with the new structure. It is not very efficient to handle adhoc bulk amounts of data using SQL.

This is where, NoSQL (Not just SQL) databases come…

Python in Database Management

Image Reference :

An Introduction to Python and Databases

Almost every other computer application from a web based application to a simple desktop application stores and retrieves information from some persistent storage. This storage could be a local hard drive or a remote repository or anything. The reason why most recent computer applications are doing what they can is because they have the capability to access and modify data from such storage locations. Such a storage location could be simply termed as a “Database”.

Now, the type of data that is stored in the application could be in a structured form like tables in which…

Even the operators need to take up additional responsibilites

Overloaded (

First of all, welcome to the last sector of the Introduction to Python Programming for Non-tech professionals’ series. I am excited to write this article and I am guessing you too are excited to read this. We have come quite a long way. The best part is, we get to end this series with a relatively easier and common concept.

All the codes snippets provided in this code and the outputs are stored in my Github repository.

Chuck the fancy terms, let us first try to contemplate on what overloading means?

Some entity is overloaded when it is asked to perform more than it is…

Tricky yet easy to understand, plethora of use cases though


In the previous article, I had touched upon the basic implementation of the OOPs concept of Inheritance in Python. The article also touched upon the idea of super() function.

In this notebook, I have dived a bit into depths of super(), MULTIPLE Inheritance and function OVER-RIDING.

Take a deep breath and Brace youselves, get ready to dive into Inheritance. Happy Inheritance (:, Thanks again for some thoughtful insights.


In simple inheritance, we have ONE CHILD class inheriting information from ONE PARENT CLASS. It is a 1 to 1 relation…

Diving into Simple Inheritance using Python

Inheritance, Image Source:

Object Oriented Thinking : Inheritance

In the previous article, I had introduced the thought process behind object oriented approach. The article also had brief discussions around classes, attributes, methods and objects.

In this notebook, I have touched upon the basic implementation of the OOPs concept of Inheritance in Python.

Take a deep breath, Happy OOPs, Happy Inheritance (:

Thanks to for some thoughtful insights

Inheritance Ideology

Inheritance refers to the process of obtaining something from someone. Here the giver and taker usually belong to a hierarchical tree. A simple example of inheritance could be a child inheriting the hair color…

Peaceful Swim on the banks of the Object Oriented Ocean

Abstraction, focus on what is necessary, Image from

Object Oriented Thinking : Abstraction and Encapsulation

In the previous article, I had introduced the thought process behind inheritance and details on the implementaion of simple, multi level and multiple inheritance.

In this notebook, I have touched upon the basic implementation of the OOPs concepts of Abstraction and Encapsulation in Python. A few more shallow dives into other OOPs cocnepts to follow in the upcoming write-ups

Please note, all the gists of code in the article are embedded using the Github gists. To see the outputs, refer to the Jupyter notebook @ Github Link

Happy OOPs (:

Abstraction and Encapsulation Ideology

An Intro to OOPs

Image Source:

Considering the rise in usage of data science pan industries irrespective of the domain, the audience targeting to learn basics of programming to inherit data science and ML in their daily life is increasing. This article aims at throwing some light on the ideology of ‘What is Object Oriented approach’, understanding its basic deployment using Python.

I myself being a core MechE, I have myself endured quite a bit of challenges understanding programming. In this article, I have stressed on the aspects of “Objective Oriented” approach so that we can absorb this and exploit it for our daily lives.


Arvind Hari

Pursuing my hobby of the decade : “Python & Data Science”

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store