Hey If you are beginner and want to learn a python then you are on right path. Learn basic as well as advanced programming in Python.

Search

Program to calculate length of the string without using built in function in Python.


PYTHON PROGRAM





str=input("Enter a string:")

l=0

for i in str:

 l+=1

print("Length of Entered String is:-"
,l)




*** Input && Output ***





No comments:

Post a Comment

let me know which type examples you want to comment me.