input: Write a function to generate a Python dictionary that contains the count of the characters in a given string.
  
  def count_chars(string):
      count_dict = {}
  
      for char in string:
          if char in count_dict:
              count_dict[char] += 1
          else:
              count_dict[char] = 1
  
      return count_dict
  
  assert count_chars("Hello World")=={'H': 1, 'e': 1, 'l': 3, 'o': 2, ' ': 1, 'W': 1, 'r': 1, 'd': 1}
  assert count_chars("Python Programming")=={'P': 2, 'y': 1, 't': 1, 'h': 1, 'o': 1, 'n': 2, ' ': 1, 'r': 2, 'g': 2, 'a': 2, 'm': 2, 'i': 1}
  assert count_chars("A quick brown fox jumps over the lazy dog")=={'A': 1, ' ': 8, 'q': 1, 'u': 2, 'i': 1, 'c': 1, 'k': 1, 'b': 1, 'r': 2, 'o': 4, 'w': 1, 'n': 1, 'f': 1, 'x': 1, 'j': 1, 'm': 1, 'p': 1, 's': 1, 'v': 1, 'e': 3, 't': 1, 'h': 1, 'l': 1, 'a': 1, 'z': 1, 'd': 1, 'g': 1}
  assert count_chars("")=={}
  assert count_chars("1234567890")=={'1': 1, '2': 1, '3': 1, '4': 1, '5': 1, '6': 1, '7': 1, '8': 1, '9': 1, '0': 1}
output: def count_chars(string):
      count_dict = {}
  
      for char in string:
          if char in count_dict:
              count_dict[char] += 1
          else:
              count_dict[char] = 1
  
      return count_dict