why you need array_flip in PYTHON ? -
Mitul Dabhi
Apr 26 '17 01:50
dictionary = {"geeta":"good religion book" , "mahabharat":"epic peom","ramayan":"epic love story"}
results= dict(zip(dictionary.values(), dictionary.keys()))
results= [(v, k) for (k, v) in dictionary.items()]
print(results)
r= {"1":"first" , "2":"second","3":"third"}
for (k, v) in r.items():
x[v]=k
print(x)