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.
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
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
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
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
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
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
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
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