Task 9 Suppose you are given two strings, s1, and s2. Now, print a new string made up of the last characters and then the first characters of1 input strings. ====== ===== ==...




Must show it in Python:



Please show step by step with comments.



Please show it in simplest form.



Please don't use any functions




Please don't use any def func ()


Task 9<br>Suppose you are given two strings, s1, and s2. Now, print a new string made up of the last characters and then the first characters of1<br>input strings.<br>====== ===== ==<br>====================================<br>Sample Input 1:<br>s1 = new<br>s2= string<br>Sample Output 1:<br>gwsn<br>Explanation: The last character of the String s2 is 'g'. The last character of the String s1 is 'w'. The first character of the String s2 is 's'. The first character<br>of the String s1 is 'n'. Together they give us the ouput we want 'gwsn'.<br>=====:<br>======<br>Sample Input 2:<br>s1 = abcd<br>s2= efgh<br>Sample Output 2:<br>hdea<br>Explanation: The last characters of the Strings s2 and s1 is 'h' and 'd' respectively while the first characters of the Strings is 'e' and 'a' respectively.<br>Together they give us the ouput we want 'gwsn'.<br>=======<br>=====<br>

Extracted text: Task 9 Suppose you are given two strings, s1, and s2. Now, print a new string made up of the last characters and then the first characters of1 input strings. ====== ===== == ==================================== Sample Input 1: s1 = new s2= string Sample Output 1: gwsn Explanation: The last character of the String s2 is 'g'. The last character of the String s1 is 'w'. The first character of the String s2 is 's'. The first character of the String s1 is 'n'. Together they give us the ouput we want 'gwsn'. =====: ====== Sample Input 2: s1 = abcd s2= efgh Sample Output 2: hdea Explanation: The last characters of the Strings s2 and s1 is 'h' and 'd' respectively while the first characters of the Strings is 'e' and 'a' respectively. Together they give us the ouput we want 'gwsn'. ======= =====

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here