Correction 1 2 3 4 5 6 7 8def enumere(L): d = {} for i in range(len(L)): if L[i] in d: d[L[i]].append(i) else: d[L[i]] = [i] return d