PyDocs

Nav

Python Runtime Services

str.swapcase

builtins

method of str
  • str.swapcase()
Convert uppercase characters to lowercase and lowercase characters to uppercase.
1 Example
>>> 'Hello World'.swapcase()
'hELLO wORLD'
from the Python docs
See Also
No see-alsos for builtins/str.swapcase
0 Notes
No notes for str.swapcase