Task 7 Write a python program that takes 2 inputs from the user, where the first input is a string with length greater than 1. The second input is the index of the first given string from where you...


Task 7<br>Write a python program that takes 2 inputs from the user, where the first input is a string with length greater than 1. The second input is the index of the first<br>given string from where you have to start reversing. Then print the new string back to the user.<br>======<br>===============<br>Sample Input 1:<br>72418<br>4<br>Sample Output 1:<br>81427<br>Explanation: Our second input, index '4' is the last index of our first input String '72418', hence the entire string is reversed giving us '81427'.<br>======<br>%=========<br>

Extracted text: Task 7 Write a python program that takes 2 inputs from the user, where the first input is a string with length greater than 1. The second input is the index of the first given string from where you have to start reversing. Then print the new string back to the user. ====== =============== Sample Input 1: 72418 4 Sample Output 1: 81427 Explanation: Our second input, index '4' is the last index of our first input String '72418', hence the entire string is reversed giving us '81427'. ====== %=========

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here