add
Add the arg to the value.
def add(
value: any,
arg: any
) - > any
Add the arg to the value.
Parameters
| Name | Type | Description |
|---|---|---|
| value | any | The base value to which the argument will be added or concatenated. |
| arg | any | The value to add to the base value; can be an integer, float, or a compatible sequence for concatenation. |
Returns
| Type | Description |
|---|---|
any | The sum of the two values if they are numeric, the concatenation if they are sequences, or an empty string if the operation fails. |