functions in python collections code example
Example 1: python collections to dictionary
list = ["a","c","c","a","b","a","a","b","c"]
cnt = Counter(list)
od = OrderedDict(cnt.most_common())
for key, value in od.items():
print(key, value)
Example 2: python collections
list = [1,2,3,4,1,2,6,7,3,8,1]
Counter(list)