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