👋 Bonjour ! Je suis Alphonsio le robot. Posez moi une question, je vais tenter d'y répondre.

How to count occurrences in Python list?

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

More