Operator Functions
operator.concat()
Concatenate compatible sequences using their sequence concatenation operation, rather than numerical addition.
Formal Syntax & Structure
python syntaxpython
operator.concat(a, b, /)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| a | object | Left operand or target object. |
| b | object | Right operand. |
Return Value
object
The object result described above.
Working Example
Example Snippetpython
import operatorprint(operator.concat([1],[2,3]))