[Solved] Online Faculty Cou Take Test Network Computer Networl Runestone Inte X Q Networks Midterm Q37292764
need to write a python program

呐Online Faculty Cou -Take Test: Network | ㅮ Computer-Networl晒Runestone Inte X Q Networks Midterm Course Hero Khttpsrunestone.academy/runestone/assignments/doAssignment?assignment_id-6260 Back to COSC1306-UH Not yet graded You are developing a simple ciphering system that takes any message as input and produces a ciphered message as output. In doing so, you have a write a program that includes two functions. The first is called make_dictionary(11, 12) that takes two equal-length lists of single-character strings. It creates and returns a dictionary using the elements of 11 as keys and the elements of 12 as values. The dictionary is then used by a function called cipher(s, d). The parameter s is a string and d is the dictionary created by make_dictionary Function cipher(s, d) uses dictionary d to replace characters in s that are keys in d with the corresponding key value. Characters in s that are not dictionary keys are left unchanged in the ciphered version of the string s. The ciphered string is returned. Make sure to add comments to your program. Your program should not use any functions or methods we have not discussed in class. An example for the main program that prints pieise ciphec this ressige as output would look like the following list2= [‘e”, ‘i”, “p”, “h”, “e’, ‘r’] cipherdict- make_dictionary(listl, list2) message-please cipher this message ciphered message cipher(message, cipherdict) print (ciphered message) Save & Run Load HistoryShow CodeLens 1# Write your code here ActiveCode: 1 (sks_1306_cw7_s19) 11:33 ANM O Type here to search 4/23/2019 4 Show transcribed image text 呐Online Faculty Cou -Take Test: Network | ㅮ Computer-Networl晒Runestone Inte X Q Networks Midterm Course Hero Khttpsrunestone.academy/runestone/assignments/doAssignment?assignment_id-6260 Back to COSC1306-UH Not yet graded You are developing a simple ciphering system that takes any message as input and produces a ciphered message as output. In doing so, you have a write a program that includes two functions. The first is called make_dictionary(11, 12) that takes two equal-length lists of single-character strings. It creates and returns a dictionary using the elements of 11 as keys and the elements of 12 as values. The dictionary is then used by a function called cipher(s, d). The parameter s is a string and d is the dictionary created by make_dictionary Function cipher(s, d) uses dictionary d to replace characters in s that are keys in d with the corresponding key value. Characters in s that are not dictionary keys are left unchanged in the ciphered version of the string s. The ciphered string is returned. Make sure to add comments to your program. Your program should not use any functions or methods we have not discussed in class. An example for the main program that prints pieise ciphec this ressige as output would look like the following list2= [‘e”, ‘i”, “p”, “h”, “e’, ‘r’] cipherdict- make_dictionary(listl, list2) message-please cipher this message ciphered message cipher(message, cipherdict) print (ciphered message) Save & Run Load HistoryShow CodeLens 1# Write your code here ActiveCode: 1 (sks_1306_cw7_s19) 11:33 ANM O Type here to search 4/23/2019 4
Expert Answer
Answer to 呐Online Faculty Cou -Take Test: Network | ㅮ Computer-Networl晒Runestone Inte X Q Networks Midterm Course Hero Khttp… . . .
OR

