Jan-18-2017, 03:21 PM
from collections import Counter aList = [1,2,1,2,3,2,1] bList = [] cList = [] c = collections.Counter() myDict = {} count = 1 for x in aList: bList.append(x) for y in bList: cList.append(y) c.update(finalList) bList = [] myDict[count] = {'notecount':dict(c)} count = count + 1 c = collections.Counter()