Function Details: swapcase

Description


Returns a copy of the string with uppercase characters converted to lowercase and vice versa.


Extended Description


The swapcase() method returns a new string where all uppercase characters are converted to lowercase and all lowercase characters are converted to uppercase. Characters that are not letters remain unchanged.


Read More about swapcase from Python Documentation

Function Signature



Module: builtins

Class: str

Parameters



Return



Return Type


str

Output

Explanation