Skip to content

Instantly share code, notes, and snippets.

@mfbx9da4
Created October 29, 2012 14:45
Show Gist options
  • Save mfbx9da4/3973946 to your computer and use it in GitHub Desktop.
Save mfbx9da4/3973946 to your computer and use it in GitHub Desktop.
Nato
nato = {
"a": 'Alfa',
"b": 'Bravo',
"c": 'Charlie',
"d": 'Delta',
"e": 'Echo',
"f": 'Foxtrot',
"g": 'Golf',
"h": 'Hotel',
"i": 'India',
"j": 'Juliet',
"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',
' ':' '
}
s = 'happy birthday george halsey love dave'
for x in s:
print nato[x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment