Computer Science, asked by Ankityadav92, 1 year ago

How to interchange keys and values in dictionaries in python?

Answers

Answered by clue
0

Try giving that a test see if it helps you out;

res = dict((v,k) for k,v in a.iteritems())

Similar questions