Hi everyone! I am new to Psychopy (and very, very bad at Python), so I hope that this question has not already been answered or this is the wrong place to ask this. However, thank you so much for your help in advance!
I am creating a simple word recall experiment where participants see words presented on the screen and then recall them. I would like the participants to see how many words they correctly recalled after the test (i.e., the number of points they got - one point for each word recalled).
I have simplified the experiment so that only a maximum of two words can be recalled, thus the max score would be two points. Unfortunately, I have been having difficulty getting accurate and consistent scores. For example, I would input two of the words correctly and sometimes get two points while other times I would get one point even though the input was exactly the same. Obviously, my code is not working correctly. Below is the code that I am currently using:
Idx=[Idx_1.text,Idx_2.text] full_score=0 j=0 i=0 while j<2: while i<2: if Idx[j] == theseWords[i]: full_score+=1 i+=1 else: i+=1 i=0 j+=1
In the above code, theseWords includes the two words that should be correctly recalled. Idx_1 and Idx_2 are the names of the two text boxes in that participants can write their responses (one word per textbox).
I would like to have a successful code that checks each response in each textbox to see if a correct word is recalled and then I would like the program to award one point for each correct word and then show participants the correct amount of points they scored.
Attached is hopefully my experiment (if it was actually uploaded) if you would like to view it for more information.
Thank you so, so much for your help! I really appreciate all the help that I can get!
FreeRecallSamp_lastrun.py (20.6 KB)