index python dictionary key code example
Example 1: create dict of value to index from list python
>>> lst = ['A','B','C']
>>> {k: v for v, k in enumerate(lst)}
{'A': 0, 'C': 2, 'B': 1}
Example 2: python dictionary get element by index
value_at_index = dic.values()[index]