Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python count items in list

from collections import Counter
a = [1,2,3,4,5,6,6,6,5,5]
Counter(a)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #count #items #list
ADD COMMENT
Topic
Name
4+8 =