Program to swap cases of a given string by In this program, we will take a string as input and swap cases of a given string. Steps to solve the program Take a string as input.Swap the cases of the characters using swapcase().Print the output. Output : Previous find the first repeated character in a string and its index. Next remove repeated characters in a string and replace it with a single letter