input: def count_chars(string):
      """ Generate a Python dictionary that contains the count of the characters in a given string.
      >>> count_chars("Hello World")
      {'H': 1, 'e': 1, 'l': 3, 'o': 2, ' ': 1, 'W': 1, 'r': 1, 'd': 1}
      >>> count_chars("Python Programming")
      {'P': 2, 'y': 1, 't': 1, 'h': 1, 'o': 2, 'n': 2, ' ': 1, 'r': 2, 'g': 2, 'a': 1, 'm': 2, 'i': 1}
      """
output:     char_count = {}
      for char in string:
          if char in char_count:
              char_count[char] += 1
          else:
              char_count[char] = 1
      return char_count