0
Q:

how to make a dictionary of indices and lists python

>>> lst = ['A','B','C']
>>> {k: v for v, k in enumerate(lst)}
{'A': 0, 'C': 2, 'B': 1}
0

New to Communities?

Join the community