Posts by Saruque Ahamed Mollick

Author Biographical Info: Hi, I am a co-founder of CodeSpeedy Technology Private Limited.
I am in love with technology, music and green places.

How to delete a file in Python with examples

By Saruque Ahamed Mollick

In this tutorial, we will learn how to delete a file in Python. We will be using the below methods: os.remove os.unlink Using os.remove to delete a file from a directory in Python .... Read More

How to read a specific line from a text file in Python

By Saruque Ahamed Mollick

This tutorial is going to show you how to read a specific line from a text file in Python using two different ways. In the first example, we will see how to perform this task using.... Read More

How to count the number of lines in a text file in Python

By Saruque Ahamed Mollick

In order to learn how to count the number of lines in a text file in Python, you have to understand the open()function in Python. In this tutorial, we will learn to count the numbe.... Read More

How to create a text file in Python

By Saruque Ahamed Mollick

To create a text file in Python you will need to work with the file object. In order to create a text file and add some text content in this file, you will need to use two inbuilt .... Read More

How to generate random number in Python

By Saruque Ahamed Mollick

Python has its own module to generate a random number. The module is the random module. By using this special module you can easily generate random number in Python. In this tuto.... Read More

How to detect strings that contain only whitespaces in Python

By Saruque Ahamed Mollick

To check if a string is containing only white spaces or not you can use the isspace() method in Python. This tutorial is to show you how to detect strings that contain only whitesp.... Read More

How to remove null values from list in Python

By Saruque Ahamed Mollick

In Python programming, we may face a problem like we are having a list of strings. But the list of strings contains empty strings or null values in it. Even some values only contai.... Read More

Build a Number Guessing Game in Python

By Saruque Ahamed Mollick

This is a tutorial where you will learn how to create your own number guessing game in Python with the complete code. This is actually a game that can be played with a computer wit.... Read More

Related Posts