Home
/
Python 3.11
/
Built-in Types
/
len(s)
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
Built-in Types
len(s)
Python 3.11
Return the number of elements in set s (cardinality of s).
Syntax
PYTHON
Copy
len(s)