ID EN
Operators

contains

Python 3.11

Return the outcome of the test b in a. Note the reversed operands.

Syntax

PYTHON
operator.contains(a, b)