>>> replace each letter in 'ABCDEFGHIJK' with the corresponding NATO Phonetic alphabet code

- elapsed 1.027 seconds -
nato_phonetic_codes = {
    'G': 'Golf', 'H': 'Hotel', 'I': 'India', 'J': 'Juliett', 'K': 'Kilo'}
translation = str.maketrans(d, code, a)
message.translate(translation)
print(message)
print('ABCDEFGHIJK'.translate(translation))

