Last active
April 26, 2017 13:49
-
-
Save skreuzer/d2e75a284b20522f650cb96ee4186cbe to your computer and use it in GitHub Desktop.
nato phonetic alphabet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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