👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

How to count number of elements in a Python list?

The Python len() function returns the size of a list (count the number of elements):

>>> myList=[8, 2, 3, 6, 8]
>>> len(myList)
5

More