Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find occerences in list python

a_list = ["a", "b", "a"]
occurrences = collections. Counter(a_list)
print(occurrences)
print(occurrences["a"])
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #find #occerences #list #python
ADD COMMENT
Topic
Name
3+2 =