Question: 4. Explain the parameters, return type and each line of the function itself: encrypt () function def encrypt (message, key) : cipher =n #encrypting each

4. Explain the parameters, return type and each line of the function itself: encrypt () function def encrypt (message, key) : cipher =n \#encrypting each letter of the mesage for c in message: if c in key: cipher += key [c] else: \#for space or other character outgide the alphabets in the string letters cipher += c return cipher 5. Explain the parameters, return type and each line of the function itself: get_decryption_key () function def get_decryption key(key) : dkey ={} for c in key: dkey [ key [c]]=c \# =f return dkey
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
