Question
(python) This function should be called codeSplice. This function should take three input variables: the first two variables are strings, the third is an integer.
(python) This function should be called codeSplice. This function should take three input variables: the first two variables are strings, the third is an integer. As output, the function should return a single integer. The integer should be calculated as follows. First determine a new string defined as the nth letter in string one concatenated with the nth to final letter of string two. Then, calculate the code as the sum of the Unicode values of each character (given by the ord() function) in the new string modulus 5.
Example Test Case:
codeSplice(Bobby, The Builder, 3) should return 1 based on the intermediate string b Builder
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