Python String maketrans()
Returns a translation table. Minimal Example As you read over the explanations below, feel free to watch our video guide about this particular string method: Syntax and Explanation static str.maketrans(x[, y[, z]]) Returns a translation table—think of it as a dictionary—that you can pass into the str.translate() method to translate all characters in the string … Read more