Question: python programming language Input Hi Output SUM: 41 CHECK SUM: 5 Secret Score: 205 You have joined as a Senior Analyst in an intelligence Bureau

You have joined as a Senior Analyst in an intelligence Bureau Division. As an initial assignment, you need to perform certain analysis with textual data. Given an input text, you need to compute the 'Secret Score from it. The Secret score can be computed as follows: Each alphabet in the input text need to be mapped to a numerical weight. 'a' can be assigned a weight of 'o' 'b' can be assigned a weight of '1' z' can be assigned a weight of '25' Similarly 'A' can be assigned a weight of '26' 'B' can be assigned a weight of '27' and so on... Now, map the individual alphabets in the input text to its corresponding weight. Calculate the sum of the weights and store as: 'SUM Now calculate the total of individual digits in 'SUM' and store as 'CHECK SUM Finally, the secret score can be computed as the product of SUM and CHECK_SUM estcase: Finally, the se Testcase: Input Hi Output SUM: 41 CHECK SUM: 5 Secret_Score: 205
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
