string.swapcase()
The swapcase() method doesn't take any parameters.
The swapcase() method returns the string where all uppercase characters are converted to lowercase, and lowercase characters are converted to uppercase.
# example stringstring = "THIS SHOULD ALL BE LOWERCASE."print(string.swapcase())string = "this should all be uppercase."print(string.swapcase())string = "ThIs ShOuLd Be MiXeD cAsEd."print(string.swapcase())
**********END OF ARTICLE **********
Comments