👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.
Count list elements 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
The Python len()
function returns the size of a list (count the number of elements):
>>> myList=[8, 2, 3, 6, 8]
>>> len(myList)
5