Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

calculate the same value in list i python

>>> from collections import Counter
>>> z = ['blue', 'red', 'blue', 'yellow', 'blue', 'red']
>>> Counter(z)
Counter({'blue': 3, 'red': 2, 'yellow': 1})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calculate #list #python
ADD COMMENT
Topic
Name
6+7 =