print("\nhere are the unicode codes:"loop through the message and print out the unicode values for ch in messageprint(ord(ch)end="print(blank line before prompt main(we can use the program to encode important messages this program converts textual message into sequence of numbers representing the unicode encoding of the message please enter the message to encodewhat sourpusshere are the unicode codes one thing to notice about this result is that even the space character has corresponding unicode number it is represented by the value string methods programming decoder now that we have program to turn message into sequence of numbersit would be nice if our friend on the other end had similar program to turn the numbers back into readable message let' solve that problem next our decoder program will prompt the user for sequence of unicode numbers and then print out the text message with the corresponding characters this program presents us with couple of challengeswe'll address these as we go along the overall outline of the decoder program looks very similar to the encoder program one change in structure is that the decoding version will collect the characters of the message in string and print out the entire message at the end of the program to do thiswe need to use an accumulator variablea pattern we saw in the factorial program from here is the decoding algorithmget the sequence of numbers to decode message "for each number in the inputconvert the number to the corresponding unicode character add the character to the end of message print message