Question: Python D | Question 15 20 pts Write a function a function that accept a string object (inString). The function will scramble the string and

Python
 Python D | Question 15 20 pts Write a function a

D | Question 15 20 pts Write a function a function that accept a string object (inString). The function will scramble the string and return the scrambled string. The function uses the following algorithm to scramble the string: 1. Only letter characters are allowed. 2. First convert the character to an uppercase. 3. Use the mapping table below to replace each character. Define a string object alpha 'ABCDEFGHIJKLMNOPORSTUVWXYZ. Let the variable char represent the old character after you have converted it to uppercase. The new character is alpha[G+alpha.index(char))%26] 4. Example: For "HelloWorld", the function will return "KHOOZRUOG 5. The mapping is New D E F G HI KLIM NOpQRSTUVwXYZ ABC HTML Editor F3 3 4 5 7 8

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!