input: Write a python function to calculate the length of a string without using the built-in len() function.
  assert len_string("hello") == 5
  assert len_string("") == 0
  assert len_string("Python is fun") == 13
output: def len_string(s):
      length = 0
      for char in s:
          length += 1
      return length