Question: In Python, how would I solve this problem? Given the strings s1 and s2 that are of the same length, create a new string consi
Given the strings s1 and s2 that are of the same length, create a new string consi sting of the last character of s1 followed by the last character of s2, followed by the second to last character of s1, followed by the second to last character of s2, and so on (in other words the new string should consist of alternating characters of the reverse of s1 and s2 ). For example, if s1 contained "hello" and s2 contained "wor Id", then the new string should contain "odillreohw". Assign the new string to the variable s3. Additional Notes: s1 and s2 should not be modified
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
