Python Program to Calculate length of a String

Spread the love

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))




Leave a Reply

Your email address will not be published. Required fields are marked *