Hi everyone, I’m new to PsychoPy and Python so please forgive me if my questions are very basic and insecure, I need more experience with PsychoPy and Python.
I would like to design a categorization task with ten fruits and ten vegetables as strings. Each string is presented twice, resulting in a total of 40 trials. Basically I want to show participants the string “tomato” and then they decide whether it’s a fruit or a vegetable by clicking an assigned button (let’s say ‘f’ with the left index finger and ‘l’ with the right index finger).
Of course the items should be presented randomly. I’d also like to save the stimulus, response and latency data per trial, so that I have 40 rows per participant. Maybe also whether or not the response was correct.
Now I have several questions: Would you advise me to use PsychoPy for this, or Python? To me it sounds overwhemingly much, but at the same time I know I always have problems ‘getting started’.
I understand code when I see it, but producing code freely intimidates me…
Could I program it in PsychoPy and let PP give me the Python code? I really want to understand how it works.
This would be my start, but after that I’m clueless:
I would start with making a list, like this:
list = [‘vegetable1’, ‘vegetable2’, ‘vegetable3’, ‘vegetable4’, ‘vegetable5’, …, ‘fruit10’]
Then I would import the module ‘random’:
And shuffle the words:
Do you think my first attempt would lead me where I want to go? Thank you for reading all of this and thank you for any tip in advance!