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 496da33 commit 5280bcaCopy full SHA for 5280bca
1 file changed
Doc/library/stdtypes.rst
@@ -1759,22 +1759,18 @@ 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.
1763
-
1764
- DZ, Dz, dz
1765
- DŽ, Dž, dž
1766
- IJ, ij
1767
- LJ, Lj, lj
1768
- NJ, Nj, nj
1769
- ᵺ
1770
1771
- For example::
+ rest lowercased. For example::
1772
1773
>>> 'PYTHON IS AMAZING'.capitalize()
1774
'Python is amazing'
1775
>>> 'Njemačka starts With a non-ASCII digraph'.capitalize()
1776
'Njemačka starts with a non-ascii digraph'
1777
+ >>> ' DZ, Dz, dz'.title()
+ >>> 'DŽ, Dž, dž '.title()
+ >>> 'IJ, ij'.title()
+ >>> 'LJ, Lj, lj '.title()
+ >>> 'NJ, Nj, nj '.title()
+ >>> 'ᵺ '.title()
1778
1779
1780
See also :meth:`title`.
0 commit comments