Python program to find length of a String using function

0
17
def find_length(str): 
    counter = 0 
    for i in str: 
        counter += 1
    return counter 
#____main____ 
str = input("Please enter string: ")
print("Length of given string is: ")
print(find_length(str))
  
    Output 1:
           Please enter string: This is program to find the length of string
           Length of given string is:
           44
    Output 2:
           Please enter string: Jaipur is a pink city
           Length of given string is: 
           21

इन्हें भी देखें।

Python Programs के लिये यहाँ click करे

 

 

Python program to find length of a String using function Python program to calculate length of a String using function Python program to finding length of a String using function Python program for find length of a String using function Python program for finding length of a String using function program to find length of a String using function in python write a python program to find length of a String using function write a program to find length of a String using function python program to find the length of the string without using len function python program to find length of a string python program to find the length of a string python program to find length of string python program to find length of string using function program to find length of string in python write a python program to find length of string write a python program to find the length of a string find the length of string program of find the length of string program of find the length of string in python program of find the length of string using function program of find the length of string using function in python find the length of string in python find the length of string using function find the length of string using function in python

LEAVE A REPLY

Please enter your comment!
Please enter your name here