OS (e.g. Win10): Mac
PsychoPy version (e.g. 1.84.x): v2020.2.4
What are you trying to achieve?: I want a left and right mouse click to be accepted as responses to the stimuli presented. The mouse click should be defined as being correct or not. According to whether the response was correct or not, there should be feedback given at the end of each trial, and a summation of the number of correct responses shown at the end of the block.
What did you try to make it work?: I tried playing around with this piece of code: MouseClick correct answer output - #2 by Yiannis
See the attachment (as a new user, I can only upload two links so this is all I can attach in this post):
CPED_even_RJP.psyexp (109.5 KB)
What specifically went wrong when you tried that?:
Trials_Prac.data[‘correctResp_P’]
KeyError: ‘correctResp_P’