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

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

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