+3 votes
in Class 11 by kratos

Describe the function maketrans( )

1 Answer

+6 votes
by kratos
 
Best answer

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]);

...