Latest Posts From Sumeet Singh

The Difference Between Is And == Title

The difference between == and is in Python

The operators == and is both perform very similar tasks in Python, but they are very different from each other and deal with a very interesting concept: how Python stores its variables in memory. Understanding the Difference between == and is In simple terms, == checks the value of the two operands, and if they’re […]

Selection Sort In Python Title

Selection Sort in Python

Today we will learn a simple and easy to visualize sorting algorithm called the Selection Sort in Python. Let’s get started. The Selection Sort Algorithm Similar to Insertion Sort, the insertion sort algorithm divides the list into two parts. The first part at the beginning of the list is the sorted part and the second […]

Insertion Sort In Python Title

Insertion Sort in Python

In this tutorial, we will learn about insertion sort in Python, a sorting algorithm that works very similar to how we sort things in real life. Let’s get started. The Insertion Sort Algorithm If you have a set of cards numbered 1 to 10 which are shuffled, and you’re asked to sort them, you will […]

Bubble Sort In Python

Bubble Sort in Python

Let’s study one of the most intuitive and easiest to learn sorting algorithms, and implement Bubble Sort in Python. We’ll start by understanding sorting itself, and then we’ll get to sorting via bubble sort, and finally, we’ll see how to implement it in Python. Importance of Sorting Algorithms What is sorting? And why is it […]

Jupyter Notebook

Jupyter Notebook for Python – Comprehensive Guide

In this tutorial, we’ll learn about a simple but powerful notebook for Python. We’ll learn what a notebook is, how to install the Jupyter Notebook, how to use it, and why to use Jupyter Notebook. What is a notebook? To know what a notebook is, we need to know what REPL is. REPL or read-eval-print […]

Generators

Generators in Python [With Easy Examples]

Generators in Python are powerful tools to make custom iterators that can be used wherever there is a need to generate a sequence of objects. Pre-requisites We need to know two important concepts before continuing on with generators in Python. 1. Iterables An iterable is an object that returns an iterator if iter() is called […]