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

How to get the size of a list in Python?

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