Skip to content

Instantly share code, notes, and snippets.

@skreuzer
Last active April 26, 2017 13:49
Show Gist options
  • Save skreuzer/d2e75a284b20522f650cb96ee4186cbe to your computer and use it in GitHub Desktop.
Save skreuzer/d2e75a284b20522f650cb96ee4186cbe to your computer and use it in GitHub Desktop.
nato phonetic alphabet
#!/usr/local/bin/python3
import sys
pa = {
'a': 'alpha',
'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',
'1': 'one',
'2': 'two',
'3': 'three',
'4': 'four',
'5': 'five',
'6': 'six',
'7': 'seven',
'8': 'eight',
'9': 'niner'
}
for l in sys.argv[1].lower():
print(" %s" % (pa[l]))
sys.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment