Apr-09-2018, 10:58 PM
Your task is quite sophisticated ...
Lets consider your translation table
performing translation of the word "Hello" we need to decide how to translate e.g. the "He" term,
variant of translation is right...
Lets consider your translation table
my_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 -> xor
Quote:He -> HTSince the translation table (my_dict) is an unordered structure, it is impossible to solve which
variant of translation is right...