ensure_sep
Ensure text s ends in separator sep'.
def ensure_sep(
sep: string,
s: string,
n: integer = 2
) - > string
Ensure text s ends in separator sep'.
Parameters
| Name | Type | Description |
|---|---|---|
| sep | string | The specific separator character or string to be appended |
| s | string | The input text string to be processed |
| n | integer = 2 | The target total number of separators that should exist at the end of the string |
Returns
| Type | Description |
|---|---|
string | The original string appended with the necessary number of separators to reach the target count |