DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
reverse keys and values in dictionary with zip python
my_dic={1:'one',2:'two',3:'three'} dict(zip(my_dic.values(),my_dic.keys()))
PREVIOUS
NEXT
Tagged:
#reverse
#keys
#values
#dictionary
#zip
#python
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit