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

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

1 Expert Approved Answer
Step: 1 Unlock

Answer the code is as follow def encryptword shift encryptedword for char in w... View full answer

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 Programming Questions!