Answers for "reverse keys and values in dictionary with zip python"

1

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()))
Posted by: Guest on February-27-2022

Code answers related to "reverse keys and values in dictionary with zip python"

Python Answers by Framework

Browse Popular Code Answers by Language