DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
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}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#dictionary
#indices
#lists
#python
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit