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
Stop trying to learn Python 3 by reading Python 2 documentation.
intab = 'aeiou' outtab = '12345' s = 'this is string example....wow!!!' print(s.translate({ord(x): y for (x, y) in zip(intab, outtab)}))