Python Examples
Python ExamplesPrograms with output

Python Program to Find Length of String


Find Length of String using len() function.

Example:
str = "webisworld"
print("String Length: ", len(str))
Output:
String Length: 10


Find Length of String without using inbuild function.

Example:
text = "webisworld"

length = 0
while text[length:]:
    length = length+1

print("String Length: ", length)
Output:
String Length: 10

Share this page on:

Was this page helpful ?

Let us know how we did!

Subscribe Email Updates

to get latest update