Question: 4. (25 pts] Cipher Chooserp Problem In this final problem, you will create a cipher chooser function crypt, which takes as an argument a specific
![4. (25 pts] Cipher Chooserp Problem In this final problem, you](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f46136b8e9e_70266f461363c31d.jpg)
4. (25 pts] Cipher Chooserp Problem In this final problem, you will create a cipher chooser function crypt, which takes as an argument a specific cipher to use and applies it to the input string. This problem requires that you use the solutions from parts 1, 2, and 3, so before you start, import the p4_1.py, p4_2.py, and p4_3.py files. crypt is a straightforward function; your code should not extend beyond a couple of lines. Examples The following image shows the results of executing the required functions. >>> print(crypt("Ahoy, there!", p4_1. encrypt)) hy hr! Ao, tee >>> print(crypt("hy hr!Ao, tee", p4_1.decrypt)) Ahoy, there! >>> print(crypt("Ahoy, there!", p4_2. encrypt)) Aytr, heo e! >>> print(crypt("Aytrh, heo e!", p4_2.decrypt)) Ahoy, there! >>> print(crypt("Ahoy, there!", p4_3.encrypt)) nubl, gurer! >>> print(crypt("Nubi, gurer!", p4_3.encrypt)) ahoy, there! 4. (25 pts] Cipher Chooserp Problem In this final problem, you will create a cipher chooser function crypt, which takes as an argument a specific cipher to use and applies it to the input string. This problem requires that you use the solutions from parts 1, 2, and 3, so before you start, import the p4_1.py, p4_2.py, and p4_3.py files. crypt is a straightforward function; your code should not extend beyond a couple of lines. Examples The following image shows the results of executing the required functions. >>> print(crypt("Ahoy, there!", p4_1. encrypt)) hy hr! Ao, tee >>> print(crypt("hy hr!Ao, tee", p4_1.decrypt)) Ahoy, there! >>> print(crypt("Ahoy, there!", p4_2. encrypt)) Aytr, heo e! >>> print(crypt("Aytrh, heo e!", p4_2.decrypt)) Ahoy, there! >>> print(crypt("Ahoy, there!", p4_3.encrypt)) nubl, gurer! >>> print(crypt("Nubi, gurer!", p4_3.encrypt)) ahoy, there
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
