Search notes:

Python: len

len(obj) returns the numbers of items in a sequence or collection.
The object on which len() is executed needs to implement __len__().

See also

Python: Built in functions

Index