Posts by Svarnim Agarwal

Author Biographical Info: Not available

#### Sort A Dictionary By Key In Python

By Svarnim Agarwal

In this tutorial, we will be going over 3 ways to sort a dictionary by key in python. Dictionary is a very useful data structure in python. But, it is unordered. Sometimes we might.... Read More

#### How to Create A Union Of Sets In Python

By Svarnim Agarwal

In this tutorial, we will be seeing how to create a union of sets in python. A set in python is similar in notion to that in mathematics. In Python, we have to use curly brackets t.... Read More

#### Sum of Integers in A Range in Python

By Svarnim Agarwal

In this tutorial, we will be finding the sum of natural numbers in the range given by the user. We will be using a for loop to find the same. To calculate the sum of integers in a .... Read More

#### Python Function To Display A Calendar

By Svarnim Agarwal

In this tutorial, we will be looking at a python function to display a calendar, i.e. all the dates of a month, of any year. The year and month are inputted by the user. This is a .... Read More

#### How To Create A Countdown In Python

By Svarnim Agarwal

In this tutorial, we will see how to create a countdown in python. The code will take input from the user regarding the length of the countdown in seconds. After that, a countdown .... Read More

#### How To Create A Stopwatch In Python

By Svarnim Agarwal

In this tutorial, we will be going through a fun program to create a stopwatch in python. For this, we will be using time.time() function from the time module. A stopwatch essentia.... Read More

#### Sort Words in a List in Alphabetical Order in Python

By Svarnim Agarwal

In this tutorial, we will learn how to sort words in a list in alphabetical order in python. This is a very simple code and requires the use of only one string function. Python con.... Read More

#### Python Program to Remove Punctuations From a String

By Svarnim Agarwal

In this tutorial, we will see how to remove punctuations from a string in python. A string is essentially just a list of characters, so we will go through each character and assign.... Read More