#take user input
      string = input('Enter the String :')
      #initialize count variable
      count = 0
      #i is the iterator
      #iterates through every element of string
      for i in string:
          #increment in count variable 
          #to find number of iterators in string
          count+=1
      print(count)
      
      Python language logo

      Program for Calculating the length of string

      0

      0

      avatar
      drzyadav

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.