.. method:: str.swapcase()
Return a copy of the string with uppercase characters converted to lowercase and
- vice versa. Note that it is not necessarily true that
- ``s.swapcase().swapcase() == s``.
+ vice versa. For example:
+
+ .. doctest::
+
+ >>> 'Hello World'.swapcase()
+ 'hELLO wORLD'
+
+ Note that it is not necessarily true that ``s.swapcase().swapcase() == s``.
+ For example:
+
+ .. doctest::
+
+ >>> 'straße'.swapcase().swapcase()
+ 'strasse'
+
+ See also :meth:`str.lower` and :meth:`str.upper`.
.. method:: str.title()