Jan-11-2019, 02:38 AM
(This post was last modified: Jan-11-2019, 02:39 AM by fooikonomou.)
mylist = [(x,y,z) for x in range(1,7) for y in range(1,7) for z in range(1,7)] count=0 combs=[] counts = dict() for data in mylist: if data not in counts: counts[data] =1 else : counts[data]=counts[data]+1 print(counts)The problem here is that all the data take value:1 and it is not increment?