input: Write a function to convert a list of strings to a dictionary where the keys are the characters of the strings and the values are the lengths of the strings.
  def convert_strings_to_dict(strings):
      dictionary = {}
      for string in strings:
          for char in string:
              dictionary[char] = len(string)
      return dictionary
  
  assert convert_strings_to_dict(['hello', 'world', 'computer'])=={'h': 5, 'e': 5, 'l': 5, 'o': 5, 'w': 5, 'r': 5, 'd': 5, 'c': 8, 'm': 8, 'u': 8, 't': 8, 'p': 8, 'e': 8, 'r': 8}
output: def convert_strings_to_dict(strings):
      dictionary = {}
      for string in strings:
          length = len(string)
          for char in string:
              dictionary[char] = length
      return dictionary