# Store correct answer

**URL:** <https://discourse.psychopy.org/t/store-correct-answer/35674>\
**Category:** Builder\
**Created:** [July 10, 2023, 12:56pm UTC](https://discourse.psychopy.org/t/store-correct-answer/35674 "2023-07-10T12:56:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smids](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@smids](https://discourse.psychopy.org/u/smids)\
**Post date:** [July 10, 2023, 12:56pm UTC](https://discourse.psychopy.org/t/store-correct-answer/35674/1 "2023-07-10T12:56:26Z")

</div>

If this template helps then use it. If not then just delete and start from scratch.

**OS** : MacOS  
**PsychoPy version** : 2023.1.3  
**What are you trying to achieve?:**  
I am trying to build my first experiment in Psychopy! It’s a basic finger tapping paradigm but I am struggling to input the correct answer into the keyboard component. The correct answer is the sequence of ‘n’,‘c’,‘b’,‘v’,‘n’ in that order.

**What did you try to make it work?:**  
I have tried all inputs I can think of, such as: [‘n’,‘c’,‘b’,‘v’,‘n’] or ncbvn etc

**What specifically went wrong when you tried that?:**  
When I open the data .csv file, the correct answers column always shows 0.

I’d be really grateful for advice on how to get the correct 5 letter sequence to store as a correct answer!

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [July 10, 2023, 10:29pm UTC](https://discourse.psychopy.org/t/store-correct-answer/35674/2 "2023-07-10T22:29:59Z")

</div>

I think you would need to score it in code.

Are you saving all key presses? If so, then you may be able to check whether key\_resp.keys == [‘n’,‘c’,‘b’,‘v’,‘n’] in End Routine

---

<div class="post-metadata">

**Author:** ![smids](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@smids](https://discourse.psychopy.org/u/smids)\
**Post date:** [July 11, 2023, 1:42pm UTC](https://discourse.psychopy.org/t/store-correct-answer/35674/3 "2023-07-11T13:42:11Z")

</div>

Thank you! Yes, needed to change that.
