I am trying to convert the following list:
list = [\'A\',\'B\',\'C\']
To a dictionary like:
dict = {\'A\':0, \'B\':1, \'C\'
You have to convert the unhashable list into a tuple:
dct = {tuple(key): idx for idx, key in enumerate(lst)}