Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t1 = 'If you can read!'
- t2 = 'Did not see that coming'
- import string
- db = { 'A':'Alfa','B':'Bravo','C':'Charlie','D':'Delta','E':'Echo',
- 'F':'Foxtrot','G':'Golf','H':'Hotel','I':'India','J':'Juliett',
- 'K':'Kilo','L':'Lima','M':'Mike','N':'November','O':'Oscar',
- 'P':'Papa','Q':'Quebec','R':'Romeo','S':'Sierra','T':'Tango',
- 'U':'Uniform','V':'Victor','W':'Whiskey','X':'Xray','Y':'Yankee',
- 'Z':'Zulu'
- }
- def tn(words):
- words = words.replace(' ','').upper()
- 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