First of all let’s see what translation means in Python. The translate()
method returns a string that is translated (one or more characters were changed).
>>> s1 = 'Dan Dumitrache'
>>> s1_tr = s1.maketrans('D', 'M')
>>> s1.translate(s1_tr)
'Man Mumitrache'