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 c461aa9 commit a31020bCopy full SHA for a31020b
Doc/library/stdtypes.rst
@@ -2554,6 +2554,19 @@ expression support in the :mod:`re` module).
2554
done using the specified *fillchar* (default is an ASCII space). The
2555
original string is returned if *width* is less than or equal to ``len(s)``.
2556
2557
+ For example:
2558
+
2559
+ .. doctest::
2560
2561
+ >>> 'Python'.rjust(10)
2562
+ ' Python'
2563
+ >>> 'Python'.rjust(10, '.')
2564
+ '....Python'
2565
+ >>> 'Monty Python'.rjust(10, '.')
2566
+ 'Monty Python'
2567
2568
+ See also :meth:`ljust` and :meth:`zfill`.
2569
2570
2571
.. method:: str.rpartition(sep, /)
2572
0 commit comments