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

Some popular posts

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