Category Python
Python String Length: len() Function
In Python or other programming language, the length of a string is the total number of characters present in a string. To find the length of a string, Python provides a built-in function named len(). This len() function returns the…
Iterate over String in Python
In Python or other programming language, iterate over a string means accessing each of its characters of a string one by one. Since a string is a sequence of characters, we can iterate or traverse each character of the string.…
String Comparison in Python (with Examples)
In Python or any other programming language, string comparison means identifying whether or not two strings are equivalent to each other. In this tutorial, we will learn how to compare two strings in Python with the help of the best…
String Concatenation in Python (with Examples)

String concatenation means joining or combining two or more strings. Joining of two or more strings to make them one is called string concatenation in Python. In general, Python provides (+) operator to concatenate multiple strings. We can concatenate two…
String Slicing in Python

String slicing in Python is a technique in which we can obtain a sub-part of the original string by specifying a range of index numbers separated by a colon. A sub-part of the original string is called substring. It is…
