This is part 3 of the series. If you are new, please click on and to check out the previous parts of the series.

Today we are going to discuss a very simple mistake that can cause big trouble. It is using mutable variables as the default argument to a function.

Let us consider the below example.

def mutable_test_function(first, second=[]):
return second

This is part 2 of the series. If you are new, you can check part 1 .

Today we are going to discuss “. In Python, sometimes we use is and == operators interchangeably. It will work at times, but not always. Let me explain this with an example.

Before getting into the topic, we all should know something about a Python object. Every Python object has two things in common:

  • First, its memory reference — Memory id can be found using the id function.
  • Second, its value

What does ‘is’ operator do:

The is operator checks whether two objects…

Have you ever thought about AI ruling over humans, machines giving us commands? Well, I have!

My answer to this question is a NO.It will not be possible in the near future. Machines can learn but not understand. They can learn our emotions but still not feel it. We have terms like machine learning, deep learning and not machine understanding or deep understanding right. That is the reason we rule this world.

Can we completely eliminate the chances of human-like robots? As we have seen in movies, is there a chance for a robot to catch feelings, understand human emotions? Maybe in any other galaxy there are many more advanced humans and they developed human-like robots. Who knows. Great possibilities lie beyond the impossible.

A machine can write a poem

But only a human can enjoy it

As a developer, we all make mistakes while coding. Some of the mistakes are very silly and it takes a lot of effort while debugging. We are planning a series of blogs related to the common mistakes that I have made and explain why we should avoid them while coding. This is part 1 of this series.

Use of import *

Most of us use import * due to our laziness. But sometimes import * cause big issues and it takes a lot of time to debug this issue. I will explain this with an example.

I have 4 modules

The story of starts with the failure of a project called . ABC was a general-purpose programming language developed by Centrum Wiskunde & Informatica (CWI). Guido van Rossum was a developer for that project. After the failure of the project CWI, they started working on , a distributed operating system. Guido was also part of that project. During the Amoeba project, Guido thinks that any programming language that lies between BASH and C will be great and will improve the efficiency of the entire project. That is the beginning of Python.

Birth of Python:

In 1989, during Guido was working…

Photo by Kelly Sikkema on Unsplash

The more you try I won’t come
More you resist then I will
Don’t search for me if you lose me
Forget about me and I will find you

In a village there was a man. He was living by selling eggs. Recently he bought a beautiful duck. It laid golden eggs. He was astonished and didn’t know what to do. He decided to check the next day. The next day, the duck laid another golden egg. As a normal person he thinks that if he kills the duck and takes all the golden eggs, he can become a rich person. But he stopped and thought again. If he can hatch those eggs and make ducklings that can lay golden eggs he can become richer. …


Photo by Tolga Ulkan on Unsplash

Death is the only universal truth. But what is death? I don’t know and I think nobody knows because it is a one-way track. No one has returned from there.
Death is a door to another world. It is not a material world; it is a spiritual world. To enter through that, we must leave everything, including our body. Once we enter through that door, we cannot come back.

In that world, there is no darkness, no racism, no partiality, no nationalism and no terrorism and nothing. No one is the ruler, and no one is the slave. Everyone is…

Second hand on a clock is one of the most ignored or less significant hands on the clock. None of us really care about how many seconds have passed. We always care about the bigger goal, i.e., the hour or minute. But nobody thinks movement of the other two is the result of the continuous effort by seconds hand.

Lesson from this are:

  • Smaller steps are important to reach your goal. One small step in the right direction means one step less to achieve your goal
  • It may take a while to receive recognition, but your contribution towards the bigger goal is more important than mere recognition.


Coding, Reading,Python

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