Write Python Program to print the Length of a String Without Using a Library Function


Topic: Write Python Program to print the Length of a String Without Using a Library Function

Solution

string= "United States of America"
count=0
for i in string:
      count=count+1
print("Length of the string is:")
print(count)



List all Python Programs