Posts by Sourav Dutta

Author Biographical Info: Not available

Delete all the png images from a folder in Python

By Sourav Dutta

In this tutorial, I will discuss how you can delete all the png images from a specific folder using Python. For this we need to import os module, it’s a built-in module of Py.... Read More

Find common characters between two strings in Python

By Sourav Dutta

In this tutorial, I’ll discuss how you can find all the common characters between two strings in Python. This can be done in many ways but we’ll do this with the easies.... Read More

How to find the number of weeks between two dates in Python?

By Sourav Dutta

In this tutorial, we will learn how to find the number of weeks between two dates in Python. In Python, we have an inbuilt module called datetime. By using this datetime module, we.... Read More

How to get the last word from a string in Python?

By Sourav Dutta

In this tutorial, I’ll discuss how you can get the last word from a given string in Python. It’s very easy to get the last word from a given string in Python. To get th.... Read More

Python JSON Encoder and Decoder

By Sourav Dutta

In this tutorial, we will learn Python JSON Encoder and Decoder. JSON stands for JavaScript Object Notation, it is basically used for storing information easily in an organized man.... Read More

Python do-while loop with example

By Sourav Dutta

In programming, we use a loop for executing the block of statements repeatedly until the loop control statement becomes false. A do-while loop is basically somewhat similar to a wh.... Read More

How to iterate over files in a given directory in Python

By Sourav Dutta

In this tutorial, I’ll share some techniques to iterate over files in a given directory and perform some actions in Python. There are several ways to iterate over files in Py.... Read More

Decrement in while loop in Python

By Sourav Dutta

This tutorial will help you to understand how to do decrement in while loop in Python. In programming, we use a loop to execute repeatedly a block of statements until a specific co.... Read More