# Feedback For Wrong Answers

**URL:** <https://discourse.psychopy.org/t/feedback-for-wrong-answers/33008>\
**Category:** Builder\
**Tags:** feedback\
**Created:** [January 30, 2023, 12:00pm UTC](https://discourse.psychopy.org/t/feedback-for-wrong-answers/33008 "2023-01-30T12:00:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan1](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jan1](https://discourse.psychopy.org/u/jan1)\
**Post date:** [January 30, 2023, 12:00pm UTC](https://discourse.psychopy.org/t/feedback-for-wrong-answers/33008/1 "2023-01-30T12:00:16Z")

</div>

Hello,

I have a task where I want feedback for all answers in the practice round and wrong answers only in the other blocks.

For all blocks, responses can be letters j, k, l or nothing (withheld response).

So, for practice round, I have a column in my Excel file labeled ‘corrAns’ and then the cells below are filled with a j, k, l or nothing. Then, my feedback routine has a blank, 1 second text element set to set every repeat and this is the code from the feedback routine in the begin routine tab:

msg = ‘’  
if key\_resp\_9.corr:  
msg = “Correct”  
elif not key\_resp\_9.corr:  
msg = “Incorrect!”

text\_20.setText(msg)

Then, I try it and nothing happens. I’d like this to work. Any ideas??

Then, if I can get this working, how can I change it so that it provides negative feedback only in the rest of the blocks?

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Chen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chen/32/38825_2.png) [@Chen](https://discourse.psychopy.org/u/Chen)\
**Post date:** [January 30, 2023, 12:06pm UTC](https://discourse.psychopy.org/t/feedback-for-wrong-answers/33008/2 "2023-01-30T12:06:59Z")

</div>

Try to use `text_20.text = msg` instead of `text_20.setText(msg)`.  
About “negative feedback only in the rest of the blocks”, you can add a condition checking which block is currently running.  
It depends on the structure of your experiment. Could you provide some more context about this question?

---

<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:** [January 31, 2023, 4:23pm UTC](https://discourse.psychopy.org/t/feedback-for-wrong-answers/33008/3 "2023-01-31T16:23:24Z")

</div>

> [@jan1](#):
>
> elif not key\_resp\_9.corr:

Logically this should just be else:
