Why does translate replace symbols with word codes In this example, I get numeric symbol codes in the translation table, not the symbols themselves. Why? And how can I make a translation table with symbols based on variables? str_1 = 'abcd' str_2 = 'dcba' tbl_trans = str.maketrans(str_1, str_2) print(tbl_trans) Continue reading...