Skip to main content

add

Add the arg to the value.

def add(
value: any,
arg: any
) - > any

Add the arg to the value.

Parameters

NameTypeDescription
valueanyThe base value to which the argument will be added or concatenated.
arganyThe value to add to the base value; can be an integer, float, or a compatible sequence for concatenation.

Returns

TypeDescription
anyThe sum of the two values if they are numeric, the concatenation if they are sequences, or an empty string if the operation fails.