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 3596dba commit f48c619Copy full SHA for f48c619
1 file changed
Doc/library/stdtypes.rst
@@ -2261,6 +2261,14 @@ expression support in the :mod:`re` module).
2261
done using the specified *fillchar* (default is an ASCII space). The
2262
original string is returned if *width* is less than or equal to ``len(s)``.
2263
2264
+ For example::
2265
+
2266
+ >>> 'Python'.ljust(10)
2267
+ 'Python '
2268
+ >>> 'Python'.ljust(10, '.')
2269
+ 'Python....'
2270
2271
+ See also :meth:`rjust`.
2272
2273
.. method:: str.lower()
2274
0 commit comments