Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started