👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.
count occurences list
Hum ... I assume you are talking about Python.
In Python, the .count()
method count the occurrences of a given value in a list:
>>> myList=["a","a","a","b","c","c"]
>>> myList.count('a')
3