input: Write a function to convert a list of strings into a dictionary. The dictionary keys should be the characters of the strings and the values should be the lengths of the strings. If multiple strings contain the same character, the value in the dictionary should be the length of the last string containing that character in the list.
  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}
  assert convert_strings_to_dict(['apple', 'banana'])=={'a': 6, 'p': 6, 'l': 6, 'e': 6, 'b': 6, 'n': 6}
  assert convert_strings_to_dict(['cat', 'dog'])=={'c': 3, 'a': 3, 't': 3, 'd': 3, 'o': 3, 'g': 3}
  assert convert_strings_to_dict([''])=={}
  assert convert_strings_to_dict([])=={}
output: def convert_strings_to_dict(strings):
      result = {}
      for s in strings:
          for char in s:
              result[char] = len(s)
      return result