Python maketrans()
The maketrans() method is a built-in string method in Python that generates a translation table. It is primarily used in conjunction with the translate() method to perform character-by-character translations or deletions.
Python String translate() Method
Python String translate() returns a string that is a modified string of givens string according to given translation mappings.