Question: PYTHON Its just one assignment and i want the complete code of it please. Its should be only done in Python! Follow the assignments guideline
1. Introduction In this exercise, we will complete several pieces of Python programs to encode and decode messages by using simple substitution ciphers 2. Objectives The purpose of this assignment is to help you: . Refresh knowledge on string, list and dictionary . Refresh knowledge on object-oriented design .Do a little bit study on list comprehension and dictionary comprehension. . Learn to use zip function in Python Note: Before you start, if you are not familior with string, list, dictionary, loops or basic object-oriented design in Python, you are recommended to review the sample codes we covered in lecture first 3. Background 3.1. One simple substitution cipher In this project, we will write some code to encode and decode messages. There is a simple kind of coding scheme called substitution cipher in which every letter of the alphabet is mapped to a different letter. A simple case of this might be described as follows alphabet: ABCDEFGHIJKLMNOPORSTUVWXYZ codestring:JKLMNWXCDPQRSTUVAEFOBGHIZY Each letter in the top line (aka. in the alphabet) will get changed into the corresponding letter in the bottom line (aka. in the codestring). For example, the string "HELLO" is encoded as CNRRU" using the code above. The string "GDLOUEZ is decoded as "VICTORY" We are calling the string to be encoded (e.g. "HELLO") and the decoded result (egICTOR") plaintext And we are call the encoded string (eg. CNRRU) and the string to be decoded (e.g. "GDLOUEZ) siphertext The alphabet rarely changes and people usually change codestring for different cipher applications. In this assignment, if not specified, the alphabet will always be solid as ABCDEFGHUKLMNOPORSTUVWXYZ" and the alphabet and codestring are with the same length
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
