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

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. The Python format() function formats strings according to the position. Thus, the user can alter […]

Python format() function Read More »

Python isidentifier() Method

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 individual variables, classes etc. Hence, naming is a very important part of any variable, class,

Python isidentifier() Method Read More »

Understanding Python f-string

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 of “f-strings”, we had the following ways to format strings in Python: 1. Python ‘%’

Understanding Python f-string Read More »

How to Slice Strings 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 starting and ending indices. Ways to Slice Strings in Python If you want to slice

How to Slice Strings in Python? Read More »