ID EN
Built-in Types

ljust

Python 3.11

Return the string left justified in a string of length width. Padding is done using the specified fillchar (default is an ASCII space). The original string is returned if width is less than or equal to len(s).

Syntax

PYTHON
str.ljust(width[, fillchar])