Description Usage Arguments Details Value References See Also Examples
Create a list of character mappings usable for pystr_translate.
1  | pystr_maketrans(x, y)
 | 
x | 
 A string.  | 
y | 
 A string.  | 
The two arguments must be strings of equal length, and in the resulting
dictionary, each character in x will be mapped to the character at the
same position in y.
A list of character mappings for use in pystr_translate.
https://docs.python.org/3/library/stdtypes.html#str.maketrans
1 2  | map = pystr_maketrans("abc", "123")
pystr_translate("a blue cat", map)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.