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)



Comments

Some popular posts

Python Program that computes the net amount of a bank account based a transaction log from console input.