Home
/
Python 3.11
/
Enum
/
__len__
Python 3.0
Python 3.11
Functions
ID
EN
…
Enum
__len__
Python 3.11
Returns the number of member in cls:
Syntax
PYTHON
Copy
__len__(cls)
Examples
Example 1
PYTHON
Copy
>>> len(Color) 3