Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. t1 = 'If you can read!'
  2. t2 = 'Did not see that coming'
  3.  
  4. import string
  5.  
  6. db = { 'A':'Alfa','B':'Bravo','C':'Charlie','D':'Delta','E':'Echo',
  7. 'F':'Foxtrot','G':'Golf','H':'Hotel','I':'India','J':'Juliett',
  8. 'K':'Kilo','L':'Lima','M':'Mike','N':'November','O':'Oscar',
  9. 'P':'Papa','Q':'Quebec','R':'Romeo','S':'Sierra','T':'Tango',
  10. 'U':'Uniform','V':'Victor','W':'Whiskey','X':'Xray','Y':'Yankee',
  11. 'Z':'Zulu'
  12. }
  13.  
  14. def tn(words):
  15. words = words.replace(' ','').upper()
  16. return ' '.join([db[i] if i in db else i for i in list(words)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement