Question: Write a Python program that will ask the user to enter two strings (s1, s2) as an input. s1 and s2 must have the same lengths. You have to concatenate first index of s1 and and last index of...


Question:<br>Write a Python program that will ask the user to enter two strings (s1, s2) as an input. s1<br>and s2 must have the same lengths.<br>You have to concatenate first index of s1 and and last index of s2, then second index of s1<br>and second last index of s2 and so on. After concatenation you have to reverse the word.<br>Finally add the concatenated word and the reverse word.<br>[You are NOT allowed to use built-in reverse() or reversed()]<br>Sample Input 1:<br>

Extracted text: Question: Write a Python program that will ask the user to enter two strings (s1, s2) as an input. s1 and s2 must have the same lengths. You have to concatenate first index of s1 and and last index of s2, then second index of s1 and second last index of s2 and so on. After concatenation you have to reverse the word. Finally add the concatenated word and the reverse word. [You are NOT allowed to use built-in reverse() or reversed()] Sample Input 1: "abcd" "1234" Sample Output 1: a4b3c2d11d2c3b4a

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here