message message chr(codenumconcatentate character to message print("\nthe decoded message is:"messagemain(study this program bitand you should be able to understand exactly how it accomplishes its task the heart of the program is the loop for numstr in instring split()codenum eval(numstrmessage message chr(codenumthe split function produces list of (sub)stringsand numstr takes on each successive string in the list called the loop variable numstr to emphasize that its value is string of digits that represents some number each time through the loopthe next substring is converted to number by evaling it this number is converted to the corresponding unicode character via chr and appended to the end of the accumulatormessage when the loop is finishedevery number in instring has been processed and message contains the decoded text here is an example of the program in actionimport numbers text this program converts sequence of unicode numbers into the string of text that it represents please enter the unicode-encoded message the decoded message isstrings are funmore string methods now we have couple of programs that can encode and decode messages as sequences of unicode values these programs turned out to be quite simple due to the power both of python' string data type and its built-in sequence operations and string methods python is very good language for writing programs that manipulate textual data table lists some other useful string methods good way to learn about these operations is to try them out interactively "helloi came here for an arguments capitalize('helloi came here for an arguments title('helloi came here for an argument