Question: python Dictionary Formats For simplicity, there will be three types of dictionaries used in this project: Encoding dictionaries will map strings to other strings, this

python
Dictionary Formats For simplicity, there will be three types of dictionaries used in this project: "Encoding dictionaries" will map strings to other strings, this will be used for many of the functions. For example, the encoding dictionary d { b" maps to "e" when encoding messages. 1. "a": "b", "b": "c" }, means that "a" maps to "b" and 2. "Decoding dictionaries" will map strings to other strings, but are reverses of the "encoding dictionaries" such that a dictionary d { "b": "a", "c": "b" and "b" was mapped to "c" in the revered encoding dictionary. }, means that "a"was mapped to "b" 3. "Statistics dictionaries" will map encoded messages to some useful statistics and will all be in the format: letter: [frequency in decoded message, frequency in encoded message]. For example, the statistics dictionary d "a[1, 2], "b": [5, 1] , means that "a" appears once in the decoded message, and "a" appears twice in the encoded message, "b" appears five times in the original message and one time in the encoded message. Dictionary Formats For simplicity, there will be three types of dictionaries used in this project: "Encoding dictionaries" will map strings to other strings, this will be used for many of the functions. For example, the encoding dictionary d { b" maps to "e" when encoding messages. 1. "a": "b", "b": "c" }, means that "a" maps to "b" and 2. "Decoding dictionaries" will map strings to other strings, but are reverses of the "encoding dictionaries" such that a dictionary d { "b": "a", "c": "b" and "b" was mapped to "c" in the revered encoding dictionary. }, means that "a"was mapped to "b" 3. "Statistics dictionaries" will map encoded messages to some useful statistics and will all be in the format: letter: [frequency in decoded message, frequency in encoded message]. For example, the statistics dictionary d "a[1, 2], "b": [5, 1] , means that "a" appears once in the decoded message, and "a" appears twice in the encoded message, "b" appears five times in the original message and one time in the encoded message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
