Write a python program to find the length of the string without using any library functions. on April 24, 2025 Get link Facebook X Pinterest Email Other Apps def find_length(input_string): count = 0 for char in input_string: count += 1 return count# Example usagetext = "Hello, India!"length = find_length(text)print("The length of the string is:", length)Output: Comments
Comments
Post a Comment