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)

how to write str.maketrans in python
1.String maketrans()

By SC

One thought on “Str.maketrans”

Leave a Reply

Your email address will not be published. Required fields are marked *