The method maketrans( ) returns a translation table that maps each character in the intab string into the character at the same position in the outtab string. Then this table is passed to the translate( ) function.
Syntax : str.maketrans(intab, outtab]);