Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
302 B
1
Indexable
Never
preps = dict()
groups = dict()
preps_ = {i for i in data[names[0]]}
for j in preps_:
    preps[j] = [0] * 10
groups_ = {i for i in data[names[1]]}
for j in groups_:
    groups[j] = [0] * 10

for i, j, k in zip(data[names[0]], data[names[1]], data[names[2]]):
    preps[i][k]  += 1
    groups[j][k] += 1