We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9fff6 commit 5830105Copy full SHA for 5830105
1 file changed
Doc/library/stdtypes.rst
@@ -1759,7 +1759,9 @@ expression support in the :mod:`re` module).
1759
.. method:: str.capitalize()
1760
1761
Return a copy of the string with its first character capitalized and the
1762
- rest lowercased. For example::
+ rest lowercased. For example:
1763
+
1764
+ .. doctest::
1765
1766
>>> 'PYTHON IS AMAZING'.capitalize()
1767
'Python is amazing'
@@ -1773,6 +1775,7 @@ expression support in the :mod:`re` module).
1773
1775
This means that characters like digraphs will only have their first
1774
1776
letter capitalized, instead of the full character.
1777
1778
1779
.. method:: str.casefold()
1780
1781
Return a casefolded copy of the string. Casefolded strings may be used for
0 commit comments