Question: thanks Write, test and document a Python program, in a file called Decodaessages.ay, which includes and tests functions to solve the following problem two dimensional

thanks  thanks Write, test and document a Python program, in a file
called Decodaessages.ay, which includes and tests functions to solve the following problem

Write, test and document a Python program, in a file called Decodaessages.ay, which includes and tests functions to solve the following problem two dimensional list (table) with 26 columns and 2 rows, both rows initialized with alphabets from A to Z in capital letters. The first row is the "decoded text" and the second row is going to be the " encoded text" (it will be encoded by shifting the letters by (key value) n number of places to the left). This list will be used to encode/decode a g For example, given the following two dimensional list charktoz and input values:E where the secret message is xs-swntvw and the 4 is the key value that indicates the number of cells by which to shift the second row for iven message. decoding) 01 2 3456789 10 11 12 13 14 1s 16 17 189 20 21 22 23 24 25 To decode the coded message, first shift the contents of the second row of the table to the left by 4 (for this example) as follows: 0 1 2 3 4 56 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Then the shifted row is used to decode the messag e as follows: find each character of the coded message in the second row of the table, and print the character from the corresponding position in the first row Note: The asterisk in the coded message is to be interpreted as a blank space (end ofa So the decoded message is: GO FORWARD Given the table your program should include the following functions word), a table (2-D list) called charatot with alphabets in both rows, obtains as input a key value (the number of cells to Function that creates shift) and a number of coded strings, one at a time, and uses the functions and decoded strings. given below to process, decode and print each of the coded Note that since the number of strings to be decoded is not known, use a sentinel value at the end of the input table (2-D list) and the number of cels to shit, shifts the elements of the second row of the list by the key value number of cells

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!