find the occurence of items in a collection of lists using dictionary code example
Example: freq count in python
freq = {}
for item in my_list:
if (item in freq):
freq[item] += 1
else:
freq[item] = 1
freq = {}
for item in my_list:
if (item in freq):
freq[item] += 1
else:
freq[item] = 1