In this tutorial, you will learn how to print the version of the current Python…
Category: Basics
Convert String to Float in Python
In this tutorial, we will take a look at how to convert string to float…
Python Remove Newline From String
There are times where we need to remove the newline from string while processing massive…
Python Split list into chunks
In this tutorial, you will learn how to split a list into chunks in Python…
How to Get the Last Element of a List In Python
In this tutorial, let us look at the most efficient ways to find the last…
How to Generate a random string of a given length in Python?
In Python, Generating a random string is pretty straightforward. However, there are scenarios where we…
Remove Character From String Python
We can remove a character from String in Python using replace() and translate() methods. In…
How To Convert Python String To Array
In Python, we do not have an in-built array data type. However, we can convert…
Convert Letters to Numbers in Python
Using the ord() method, we can convert letters to numbers in Python. The ord() method…
Python Comment Block
Comments are a piece of text in a computer program that provides more information on…