Swapcase
Problem to swap the case in a given string.
Example-1:
Input : s = "pYThoN" Output : PytHOn
Example-2:
Input : s = "Blue" Output : bLUE
Solution
s = "pYThoN" a = s.swapcase() print(a)
Output
PytHOn
Problem to swap the case in a given string.
Input : s = "pYThoN" Output : PytHOn
Input : s = "Blue" Output : bLUE
s = "pYThoN" a = s.swapcase() print(a)
PytHOn