String maketrans() returns a translation table usable for str.translate and convert argument to number.It takes dictionary as input if only one argument , if there are two argument it must be stringof equal length and in output each characters in x will be mapped to each character in y as dictionary 7 if there is 3 argument it will be mapped as none in output.
Syntax of Str.maketrans:
maketrans(x, y, z)
[…] 31.Str.maketrans:It returns translation table. […]