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':'9','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 P3.py script
submit two screenshots:
1. the script
2. testing of the script
P3.txt 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 P3A.txt to prove the encryption worked.
Reminder: You will first create 2 files, a P3.txt and a P3.py, the script should then create a 3rd file called P3A.txt 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':'9','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 Ch9/P3.py script
submit two screenshots:
1. the script
2. testing of the script
P3.txt 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 P3A.txt to prove the encryption worked.
Reminder: You will first create 2 files, a P3.txt and a P3.py, the script should then create a 3rd file called P3A.txt which should contained the encrypted form of AaBb
Write a script Python that uses a dictionary to

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 Programming Questions!