input: Write a function to convert a list of strings to a dictionary where the keys are the characters from the strings and the values are the lengths of the strings from which the characters were extracted. If the given list is empty, return an empty dictionary.
  assert string_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 string_to_dict(['quick', 'brown', 'fox'])=={'q': 5, 'u': 5, 'i': 5, 'c': 5, 'k': 5, 'b': 5, 'r': 5, 'o': 5, 'w': 5, 'n': 5, 'f': 3, 'x': 3}
  assert string_to_dict([])=={}
output: 
  result = {}
  for s in strings:
      length = len(s)
      for char in s:
          result[char] = length
  return result
  