swapcase() String Method in Python with Examples
swapcase()
converts uppercase characters to lowercase and lowercase characters to uppercase.
Example: swapcase() String Method
message = 'WeLcOmE to Python'
print(message.swapcase())
Output
wElCoMe TO pYTHON
Related String Methods