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

how to use str.swapcase
1.String swapcase

changed swapped letters to upper case and lower case respectively.

By SC

One thought on “Str.swapcase”

Leave a Reply

Your email address will not be published. Required fields are marked *