How do I reverse the order of key-value pairs of a dictionary, in Python? For example, I have this dictionary:
english_spanish = {"hi": "hola", "thanks": "gracias", "yes": "si", "no": "no"}
I want to reverse it so that it returns:
english_spanish = {"hola": "hi", "gracias": "thanks", "si": "yes", "no": "no"}
I would like to know how can you do it using the lampda
but i dont seem to understand how it works