p>“I':“India', 勺':“Juliet’, “K”:“Kilo”, ‘L”:“Lima',
“M:“Mike', 'NP:November', “0’; “Oscar', “P':‘Papa',
“Q':“Quebec', “R':Romeo’, ‘S':“Sierra', T':“Tango’,
UP:“Uniform', ‘V”:‘Victor', “W:whiskey’, ‘X:“Xray',
‘Y':f Yankee’, ‘Z’:“Zulu’
encrypted_message w
#Iterate through each Letter in the message
for letter in message:
#I the Letter is in the diction or y, add the 買粉絲rresponding 買粉絲deword to the encrypted messag
if letter.upper() in nato_alphabet:
encrypted_message+=nato_alphabet[letter.upper() ] +“n
#I the Letter is not in the dictionary, add the original Letter to the encrypted message
else:
encrypted_message+=letter
return encrypted_message
message="HelloWorld"
encrypted_message=encrypt_message(message)
print("Encrypted message:", encrypted_message)
2024-07-11 03:04
2024-07-11 02:17
2024-07-11 01:40
2024-07-11 01:10
2024-07-11 00:55
2024-07-11 00:28