Invert a Dictionary
Is there a good way to invert dictionary so key:value gets to be value:key?
bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184
Thanks much mawe!
All these >>> and ....... mess me up, so I always take time to remove them so I can use my IDE editior to run the code.
It looks like its workoing so.
How would invert a dictionary like:
{'A':['Art', 'Army','Apple'], 'B':['Ball','Boy','Bang','Brother']}
bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184
Thank you much again mawe,
I slowly getting to know what dictionaries are about. Looks like they are very usefull. Sorry I am asking so many naive questions.
bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184