Category Python String

Strings – you use it in every program, just like any other programming language. Learn about Strings in Python and how to manipulate them in the Pythonic way.

Python format() function

Python Format() Function

Hello! In this article, we will be focusing on formatting string and values using Python format() function. Getting started with the Python format() function Python format() function is an in-built String function used for the purpose of formatting of strings.…

Python isidentifier() Method

Python String Isidentifier()

So today in this tutorial, we are going to go through the Python isidentifier() method. Introduction Basically, an identifier is a name given to any variable, class, object, function, etc by the user. These names are important to uniquely identify…

How to Use the Python String splitlines() Method

The Splitlines() Method In Python

Introduction Today in this tutorial, we are going to discuss the Python string splitlines() method. Firstly, let us look at the basic definition of the method. The Python String splitlines() Method The Python string splitlines() is a built-in method that…

Understanding Python f-string

Python F String Function

String formatting in Python can be achieved using f-string. Thus, in this article, we will be focusing on the implementation of Python f-string. Necessity of f-string in Python Python f-string basically serves the purpose of string formatting. Before the emergence…

3 ways to trim a String in Python

3 Ways To Trim A Python String

What do you mean by trimming a string and how can you trim a string in Python? When you remove the whitespace around strings of text, in technical terms we call it trimming a string. In this article, we’ll cover…

How to Slice Strings in Python?

String Slicing In Python

Introduction In this tutorial, we are going to learn how we can slice strings in Python. Python supports the slicing of strings. It is the creation of a new sub-string from the given string on the basis of the user-defined…