In this video, I have explained logic of how to exchange first and last character of string in Python.
Problem Statement - Python program to form a new string where the first character and the last character have been exchanged after sorting looks same.
I have covered below topics -
Logic theory/ conditions
program
program testing
Related video link -
Anagrams strings using Python - • Anagrams strings using Python