invert keys and values python dict

50

invert keys and values python dict -

inv_map = {v: k for k, v in my_map.items()}

Comments

Submit
0 Comments