Tips
Python
Nested Dict
https://stackoverflow.com/questions/635483/what-is-the-best-way-to-implement-nested-dictionaries
❌
d = {}
for p in PARTICIPANTS:
d[p] = {}
for c in CONDITIONS:
d[p][c] = {}
✅
d = {}
for p in PARTICIPANTS:
for c in CONDITIONS:
d.setdefault(p, {}).setdefault(c, {})