(Apr-09-2018, 10:58 PM)scidam Wrote: Your task is quite sophisticated ... Lets consider your translation tablemy_dict = { 'He':'x', 'l':'y', 'd':'n', 'o ':'g', ' fri':'t', 'nd!': 'q', 'e':'T'}It is an unordered set of keys and values (dicts are unordered structures in Python), so performing translation of the word "Hello" we need to decide how to translate e.g. the "He" term,Quote:He -> xorQuote:He -> HTSince the translation table (my_dict) is an unordered structure, it is impossible to solve which variant of translation is right...
It would have to make He -> x not HT. Which is why its difficult