[Solved]Developing Simple Ciphering System Takes Message Input Produces Ciphered Message Output Wr Q37290405
You are developing a simple ciphering system that takes anymessage as input and produces a ciphered message as output. Indoing so, you have a write a program that includes two functions.The first is called make_dictionary(l1, l2) that takes twoequal-length lists of single-character strings. It creates andreturns a dictionary using the elements of l1 as keys and theelements of l2 as values. The dictionary is then used by a functioncalled cipher(s, d). The parameter s is a string and d is thedictionary created by make_dictionary. Function cipher(s, d) usesdictionary d to replace characters in s that are keys in d with thecorresponding key value. Characters in s that are not dictionarykeys are left unchanged in the ciphered version of the string s.The ciphered string is returned. Make sure to add comments to yourprogram. Your program should not use any functions or methods wehave not discussed in class. An example for the main program thatprints pleise ciphec this ressige as output would look like thefollowing:
list1 = [‘r’, ‘a’, ‘n’, ‘d’, ‘o’, ‘m’]
list2 = [‘c’, ‘i’, ‘p’, ‘h’, ‘e’, ‘r’]
cipherdict = make_dictionary(list1, list2)
message = ‘please cipher this message’
ciphered_message = cipher(message, cipherdict)
print(ciphered_message)
Expert Answer
Answer to You are developing a simple ciphering system that takes any message as input and produces a ciphered message as output. … . . .
OR

