Python Program to Calculate length of a String
In this tutorial, you will learn how to write Python Program to Calculate length of a String.
We have good no of ways to find the length of string. But we can use inbuilt string len() function to calculate the length of string.
#python program to find string length
string = "tutorials"
print(len(string))
string = "online tutorials"
print(len(string))
Output:
9 16