Question: Need help with this Juypter hub problem in python. You must use a lambda helper function like the problem says. Problem 3 Write a function
Need help with this Juypter hub problem in python. You must use a lambda helper function like the problem says.

Problem 3 Write a function called linearDecipher that accepts a multiplier (m), a shift amount (k), and the ciphertext. It returns the decrypted byte string. In Problem 2 you wrote a function that decrypts a single value. Use what you learned from it to help write this function. The map function will come in handy. You will also need to use the lambda technique to write a helper function. This function should take in the multiplier and offset and return an anonymous function (lambda). This new function should take one input, the character to decyrpt, and decrypt it using the given mulitiplier, offset, and multiplicative inverse function. In [20]: \# Run this cell to check your function assert linearDecipher (5,11,b " s\x4 ' \xab\xaa\x18\x4EE\xf)==b Hello Sierra' assert linearDecipher (13,50,bA)=b\x8bP NameError Traceback (most recent call last) 1 \# Run this cell to check your function ---> 2 assert linearDecipher (5,11,b"s\x46\xab\xaa\x18\x4EE\xf")=b Hello Sierra' 3 assert linearDecipher (13,50,bA)=b\x8bP NameError: name 'linearDecipher' is not defined In [21]: \# Try it yourself! linearDecipher (49,100,b7\xa3r\x1b6\xf5\x98\xc9\x10\xf5\x98}\xa3rg\xb5) NameError Traceback (most recent call last) ipython-input-21-6a72724dce66> in module> 1 \# Try it yourself! NameError: name 'linearDecipher' is not defined In []
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
