Python Program to understand length function in python

 

str = ' Python Program'

x=''

c=0

while (x!=str):

    c = str[c] 

    x += ch

    c+=1

print (c)


Comments