input: Write a function to create a dictionary from a list of strings where the keys are the characters of the strings and the values are the lengths of the strings.
  assert convert_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_to_dict(['a', 'bb', 'ccc'])=={'a': 1, 'b': 2, 'c': 3}
  assert convert_to_dict(['python', 'java', 'cpp'])=={'p': 6, 'y': 6, 't': 6, 'h': 6, 'o': 6, 'n': 6, 'j': 4, 'a': 4, 'v': 4, 'c': 3, 'p': 3}
  assert convert_to_dict([])=={}
  assert convert_to_dict([''])=={}
output: def convert_to_dict(strings):
      result = {}
      for s in strings:
          length = len(s)
          for char in s:
              result[char] = length
      return result