input: Write a python function to calculate the length of a string without using the len() function.
  assert length_of_string("hello")==5
  assert length_of_string("")==0
  assert length_of_string("Python")==6
output: def length_of_string(s):
      count = 0
      for char in s:
          count += 1
      return count