Solution Exercise 55: swapping a given string without using the swapcase method en python
Exercise 55 Write a python program as a function which takes as parameters a string s and which returns a string obtained from the string s by transforming each uppercase…