I'm currently programming an experiment and I need your help. The structure of the experiment is as follows:
The experiment has 2 different parts and 8 different groups:
Participants are assigned to a experimental or a control group
After they have completed the task participants of both groups are assigned to 1 of 4 tasks
--> This means that there are 8 groups in total: experimental group & Task 1; experimental group & Task 2; experimental group & Task 3; experimental group & Task 4 and control group & Task 1; control group & Task 2; control group & Task 3; control group & Task 4
I need all tasks in 1 file because it would get too messy if I had 8 different excel-sheets. As a consequence I need a code that allows me to separate the participant into 1 of the 8 groups. In the first part participants need to be separated into 2 groups (experimental vs. control condition). Then participants of both groups need to be assigned to 1 of the 4 tasks. In the end each group should entail 10 participants (80 participants in total). I know that it is possible to create a dictionary in python and I was hoping this would help me to separate the participants into different groups. Since I'm just learning to use python I was hoping someone could help me with the code or give me some advice.
Thank you very much,