string1='abcd-1234' print(string1.translate(string1.maketrans('abc','ABC'))) a='aeiou' b='12345' string2='aasdfwe' print(string2.maketrans(a,b)) print(string2.translate(string2.maketrans(a,b)))