Solution Exercise 76 : Transform a given string by swapping its characters
Exercise 76 Develop a Python algorithm that transforms a given string, 's,' by exchanging its second character (s[1]) with the second-to-last character. It is assumed that the length of 's'…