Hello Woon
ok, the problem is that you compare resp.keys to the strings corrAns1 and corrAns2. resp.keys is however s, right, down, up, left or right. I used just ‘1’ and ‘2’ as an example. You need to change the if-else construction to
if resp.keys == [str(corrAns1), str(corrAns2)] or resp.keys == [str(corrAns2), str(corrAns1)]:
resp.corr = 1
else:
resp.corr = 0
Best wishes Jens