How to interchange keys and values in dictionaries in python?
Answers
Answered by
0
Try giving that a test see if it helps you out;
res = dict((v,k) for k,v in a.iteritems())
Similar questions