You are here : python_3Built-in Functionslen

len() - Built-in Functions

Return the length (the number of items) of an object.  The argument may be a
sequence (such as a string, bytes, tuple, list, or range) or a collection
(such as a dictionary, set, or frozen set).


Syntax

len(s)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference