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 www.pythonprogramming.in #
 
PREVIOUS NEXT
Tagged: #python #count #items #list
ADD COMMENT
Topic
Name
8+2 =