The len() function can be used with several different types in Python – both built-in types and library types. For example:
>>> len([1, 2, 3])
3
The len() function can be used with several different types in Python – both built-in types and library types. For example:
>>> len([1, 2, 3])
3