def check_string_length(usr_input: str) -> int:
          if not usr_input:
              return 0
          str_input = f'{usr_input}'
          _str_length = len(str_input)
          return _str_length
      
      Python language logo

      Check length of String

      check-string-length
      strings
      Helpful

      This function checks length of string

      python3.6 and above

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.