String swapcase returns all letters in small case to capital and vice-versa.
How to use Str.swapcase():
As shown in image below t1 is a string with smallcase letters. and t2 is string of uppercase letters.when we applied swap case on both it

changed swapped letters to upper case and lower case respectively.

[…] 38.Str.swapcase:It returns all letters in small case to capital and vice-versa. […]