ID EN
Enum

__and__

Python 3.11

Returns current flag binary and’ed with other:

Syntax

PYTHON
__and__(self, other)

Examples

Example 1
PYTHON
>>> purple & white
<Color.RED|BLUE: 5>
>>> purple & Color.GREEN
<Color: 0>