Python string maketrans() method is used to return a mapping table that can be used with string translate function.