ljust
Left-align the value in a field of a given width.
def ljust(
value: string,
arg: integer
) - > string
Left-align the value in a field of a given width.
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The string value to be padded and aligned |
| arg | integer | The total width of the resulting field in characters |
Returns
| Type | Description |
|---|---|
string | The original string padded with spaces on the right to reach the specified total character width |