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 e1f29ec commit 2fd3ca1Copy full SHA for 2fd3ca1
1 file changed
Doc/library/stdtypes.rst
@@ -1759,18 +1759,22 @@ 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.
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::
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'
- >>> ' DZ, Dz, dz'.title()
- >>> 'DŽ, Dž, dž '.title()
- >>> 'IJ, ij'.title()
- >>> 'LJ, Lj, lj '.title()
- >>> 'NJ, Nj, nj '.title()
- >>> 'ᵺ '.title()
1777
1778
1779
1780
See also :meth:`title`.
0 commit comments