Question: Python Problem 1. Write a function with the following description: def encxyntionlS, n): input: A string S consisting of only lower case letters and empty

Python Python Problem 1. Write a function with the following description: def

Problem 1. Write a function with the following description: def encxyntionlS, n): input: A string S consisting of only lower case letters and empty spaces of arbitrary length. n, an integer; output: A stringW-Tst:(n). T is a string which has been encrypted by replacing each letter in the string S by a letter n letters ahead in the alphabet. For example, ensryption.l"hello", returns "ifmmp xpsmel, that is, each letter has been replaced by remains unchanged. return helloo one letter ahead of it. Empty space character Note that the alphabet shifting is circular. Shifting z by 1 letter gives a. Problem 2. Write a function with the follwoing description: def decryption (W) input: A string W, encrypted as described in Problem 1; output: Based on the trailing integer in W, return the original content of the string S. For example, desryption.l"ifmme xpsmel") returns "hello world

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!