File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -1759,22 +1759,18 @@ expression support in the :mod:`re` module).
17591759.. method :: str.capitalize()
17601760
17611761 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::
1762+ rest lowercased. For example::
17721763
17731764 >>> 'PYTHON IS AMAZING'.capitalize()
17741765 'Python is amazing'
17751766 >>> 'Njemačka starts With a non-ASCII digraph'.capitalize()
17761767 'Njemačka starts with a non-ascii digraph'
1777-
1768+ >>> ' DZ, Dz, dz'.title()
1769+ >>> 'DŽ, Dž, dž '.title()
1770+ >>> 'IJ, ij'.title()
1771+ >>> 'LJ, Lj, lj '.title()
1772+ >>> 'NJ, Nj, nj '.title()
1773+ >>> 'ᵺ '.title()
17781774
17791775
17801776 See also :meth: `title `.
You can’t perform that action at this time.
0 commit comments