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 a31020b commit fce429bCopy full SHA for fce429b
Doc/library/stdtypes.rst
@@ -2842,13 +2842,17 @@ expression support in the :mod:`re` module).
2842
than before. The original string is returned if *width* is less than
2843
or equal to ``len(s)``.
2844
2845
- For example::
+ For example:
2846
+
2847
+ .. doctest::
2848
2849
>>> "42".zfill(5)
2850
'00042'
2851
>>> "-42".zfill(5)
2852
'-0042'
2853
2854
+ See also :meth:`rjust`.
2855
2856
2857
.. index::
2858
single: ! formatted string literal
0 commit comments