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

NameTypeDescription
aobjectLeft operand or target object.
bobjectRight operand.

Return Value

object

The object result described above.

Working Example

Example Snippetpython
import operatorprint(operator.concat([1],[2,3]))
Python Reference