
python
By: a guest on
Dec 24th, 2010 | syntax:
Python | size: 0.25 KB | hits: 294 | expires: Never
import string
characters = string.maketrans('a ''b ''c', '1''2''3')
text = raw_input(' Write text: ').translate(characters)
print '====================================='
print '\nCONVERTION COMPLETE !'
print '\nRESULT: {text}\n'.format(text=text)