Question: Write a function, main(), that asks the user to enter an integer for the shift value. After the user enters the shift value, the
Write a function, main(), that asks the user to enter an integer for the shift value. After the user enters the shift value, the user is prompted to enter a list of words to be encrypted. Write a function, encrypt(), that has a string parameter for the word to encrypt and an int parameter for the shift key. This function calculates and returns the encrypted word. Display each original word and encrypted word in tabular format. All text should be displayed in lowercase.
Step by Step Solution
3.43 Rating (166 Votes )
There are 3 Steps involved in it
Answer the code is as follow def encryptword shift encryptedword for char in w... View full answer
Get step-by-step solutions from verified subject matter experts
