Python Program to input and string and print total number of characters in that (without len()) # working of len() function
str = input('Enter String')
c=0
str=list(str)
while str !=[]:
c+=1
str.pop()
print(c)
str = input('Enter String')
c=0
str=list(str)
while str !=[]:
c+=1
str.pop()
print(c)
Comments
Post a Comment