Created
January 3, 2024 13:31
-
-
Save oogl/4c06fddaf74d97c285323f32f7cf5983 to your computer and use it in GitHub Desktop.
NATO Phonetic Alphabet
This file contains hidden or 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
NATO_CODES = { | |
'A' : 'Alpha', | |
'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' : 'X-ray', | |
'Y' : 'Yankee', | |
'Z' : 'Zulu', | |
'0' : 'Zero', | |
'1' : 'One', | |
'2' : 'Two', | |
'3' : 'Tree', | |
'4' : 'Fower', | |
'5' : 'Fife', | |
'6' : 'Six', | |
'7' : 'Seven', | |
'8' : 'Eit', | |
'9' : 'Niner', | |
} | |
for char in input().strip(): | |
print(char, NATO_CODES.get(char.upper(), '')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment