Sep-13-2017, 05:39 AM
from string import maketrans intab = "aeiou" outtab = "12345" trantab = maketrans(intab, outtab) str = "this is string example....wow!!!" print (str.translate(trantab))Traceback (most recent call last):
File "C:/Python 3.6/program/tran.py", line 3, in <module>
trantab = maketrans(intab, outtab)
NameError: name 'maketrans' is not defined