How do I get the number of elements in a list?

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)