SHARE
TWEET

python

a guest Dec 24th, 2010 989 Never
  1. import string
  2.  
  3. characters = string.maketrans('a ''b ''c', '1''2''3')
  4.  
  5. text = raw_input(' Write text: ').translate(characters)
  6.  
  7. print '====================================='
  8.  
  9. print '\nCONVERTION COMPLETE !'
  10. print '\nRESULT: {text}\n'.format(text=text)
RAW Paste Data
Top