code: def list_string_to_dict(string):
      
      dictionary = {}
      for idx, c in enumerate(string):
          dictionary.update({c: idx})
      return dictionary
docs: Inputs ``['a', 'b', 'c']``, returns ``{'a': 0, 'b': 1, 'c': 2}``.