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
You don't need to use bytes.maketrans() when str would be simpler and eliminate the need for the 'b' prefix:
bytes.maketrans()
str
print("Swap vowels for numbers.".translate(str.maketrans('aeiou', '12345')))