powered by
str
map
pystr_maketrans
pystr_translate(str, map)
map = pystr_maketrans("abc", "123") pystr_translate("a blue cat", map)
Run the code above in your browser using DataLab