Question: Write a script Python that uses a dictionary to assign codes to each letter of the alphabet. For Example: Codes = { ' A '
Write a script Python that uses a dictionary to assign codes to each letter of the alphabet. For Example: Codes A:a:B:@b:#etc
The script should open a specific file, read its contents, then use the dictionary to write an encrypted version of the file's contents to a second file. Each character in the second file should contain the code from the corresponding character in the first file.
create Ppy script
submit two screenshots:
the script
testing of the script
Ptxt file contains code below:
AaBb
The letters above should end up getting encrypted when you run your script.
I also want to see a screen capture using cat command against PAtxt to prove the encryption worked.
Reminder: You will first create files, a Ptxt and a Ppy the script should then create a rd file called PAtxt which should contained the encrypted form of AaBb Write a script that uses a dictionary to assign codes to each letter of the alphabet. For Example: Codes A:a:B:@b:#etc
The script should open a specific file, read its contents, then use the dictionary to write an encrypted version of the file's contents to a second file. Each character in the second file should contain the code from the corresponding character in the first file.
create ChPpy script
submit two screenshots:
the script
testing of the script
Ptxt file contains code below:
AaBb
The letters above should end up getting encrypted when you run your script.
I also want to see a screen capture using cat command against PAtxt to prove the encryption worked.
Reminder: You will first create files, a Ptxt and a Ppy the script should then create a rd file called PAtxt which should contained the encrypted form of AaBb
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
