I\'m a Python newbie.
How come this doesn\'t work in Python 3.1?
from string import maketrans # Required to call maketrans function. intab = \"aei
maketrans is a string function
use below logic to use translate using maketrans
print('maketrans' , '& translate') intab = "aeiou" outtab = "12345" str = "Fruits are delicious and healthy!!!" trantab = str.maketrans(intab, outtab) print (str.translate(trantab))