Question: Write a python code of the following: Encrypt/Decrypt Outline: There will be two arrays: Dictionary array 1: incomplete words. Dictionary array 2: complete words. Both
Write a python code of the following: Encrypt/Decrypt
Outline:
There will be two arrays:
Dictionary array 1: incomplete words.
Dictionary array 2: complete words.
Both arrays are strings.
The program:
Part A:
Get user input as a string. For example, See you later
Then, a variable will take one word of the entire text as input.
After that, there will be a function to check of the word used in the encrypt array.
Next step, analyzing each part of completed array until it finds the abbreviation.
Once the abbreviation is found, it will replace the word.
Then, analyze the second word of string and repeat the process.
Part B:
The same process in part A, but with decrypt.
Then, ask user to enter a word.
Next, read the response of the user to classify if it is either encrypt or decrypt.
If the user enters encrypt, then run A.
If the user enters decrypt, then run B.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
