Obtenez un dict inverse Python
inv_map = {v: k for k, v in my_map.items()}
Busy Boar
inv_map = {v: k for k, v in my_map.items()}