How to use 'swap case in python' in Python

Every line of 'swap case in python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
58def test_swap_case():
59 assert Chepy("SoMe TeXt").swap_case().o == "sOmE tExT"
475def swapcase(self, s):
476 """
477 Return a copy of *s*, but with lower case letters converted to upper case and
478 vice versa.
481 """
482 pass

Related snippets