Decipher a message

Report a typo

Let's decipher a little message. The first input line is an encoded message, and the second line is the key for deciphering the message, which is an integer. Convert the key to two bytes and sum up its items. Then add the resulting sum to the code point of each character in the message. Finally, print the decoded message.

Sample Input 1:

HlAdghmcXnt
256

Sample Output 1:

ImBehindYou
Write a program in Python 3





___

Create a free account to access the full topic