Hi!
I use dictionaries for translating texts between languages. They typically look like this:
trans_en_sv = { 'parish': 'socken', 'county': 'län', 'municipality': 'kommun', 'rune stone': 'runsten', 'rock carving': 'hällristning', 'rune inscribed boulder': 'runhäll', 'runic inscription': 'runinskrift' }
This one is from English to Swedish. If I want to use the same dictionary for translating the other way, is there a smarter way than looping through it and create a new dictionary? I have a feeling there should be some way to just flip around the keys and values on the fly. 🤔
Best regards, Niklas