# How to display a feedback message that gives the number of correct answers up to that point in numbers

**URL:** <https://discourse.psychopy.org/t/how-to-display-a-feedback-message-that-gives-the-number-of-correct-answers-up-to-that-point-in-numbers/29620>\
**Category:** Builder\
**Tags:** feedback\
**Created:** [June 16, 2022, 5:43am UTC](https://discourse.psychopy.org/t/how-to-display-a-feedback-message-that-gives-the-number-of-correct-answers-up-to-that-point-in-numbers/29620 "2022-06-16T05:43:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![egashi9](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@egashi9](https://discourse.psychopy.org/u/egashi9)\
**Post date:** [June 16, 2022, 5:43am UTC](https://discourse.psychopy.org/t/how-to-display-a-feedback-message-that-gives-the-number-of-correct-answers-up-to-that-point-in-numbers/29620/1 "2022-06-16T05:43:53Z")

</div>

Hi, users.

Please tell me how to display a feedback message that gives the number of correct answers up to that point in numbers.  
I make 2 loop trial routines. 1 trial routines have 16 trial.

This experiment will pass 28/32 correct answers.  
Then, i have to confirmation the correct numbers.  
But, i have no idea about this.

I’m beginner for Psychopy and poor english skills.  
I don’t sure whether this topic is conveyed accurately.

Thanl you very muvh!!

英語でもポストしましたが、ダメもとで日本語でも投稿します…。

１６試行を含むトライアルを２ループして、その正答率を最終的に数字でFBしたいです。  
２８/３２の正答率をもって次のステップへと進むとしているので。

現在、正答は１として変換し一問ごとにFBで”正解”としています。  
全３２試行が終了したときに、それらの正答率がいくつであったかをFBしたいのですが。

２週間前にPsychoPyを触り始めた初心者ゆえに、どこを調べればいいかもわかっていない状態です。  
どなたかにヒントを頂ければ幸いです。

よろしくお願いいたします！

---

<div class="post-metadata">

**Author:** ![suelynnmah](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@suelynnmah](https://discourse.psychopy.org/u/suelynnmah)\
**Post date:** [June 16, 2022, 11:05am UTC](https://discourse.psychopy.org/t/how-to-display-a-feedback-message-that-gives-the-number-of-correct-answers-up-to-that-point-in-numbers/29620/2 "2022-06-16T11:05:28Z")

</div>

[counter feedback.zip](https://discourse.psychopy.org/uploads/short-url/bTRAzwEu6Wo35W5n1kqdLWf0MKj.zip) (8.3 KB)  
Hi, I made a minimal demo based on my understanding of your task. Is this what you’re looking for?

---

<div class="post-metadata">

**Author:** ![egashi9](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@egashi9](https://discourse.psychopy.org/u/egashi9)\
**Post date:** [June 16, 2022, 2:21pm UTC](https://discourse.psychopy.org/t/how-to-display-a-feedback-message-that-gives-the-number-of-correct-answers-up-to-that-point-in-numbers/29620/3 "2022-06-16T14:21:34Z")

</div>

Oh…god!!  
First, thank you for your reply!! I’m happy!!  
I wonder would get replied from others cause my topic have less information.

And, your demo is so helpful for me!!  
I want feedback message only onetime on the end of experience.  
Maybe, i can make it referenced your task!!!

Thank you from Japan!!!

---

<div class="post-metadata">

**Author:** ![suelynnmah](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@suelynnmah](https://discourse.psychopy.org/u/suelynnmah)\
**Post date:** [June 16, 2022, 4:16pm UTC](https://discourse.psychopy.org/t/how-to-display-a-feedback-message-that-gives-the-number-of-correct-answers-up-to-that-point-in-numbers/29620/4 "2022-06-16T16:16:04Z")

</div>

Hi, I’m glad it helped. For it to appear only at the end, you just have to put the feedback routine outside of the loop 🙂

---

<div class="post-metadata">

**Author:** ![egashi9](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@egashi9](https://discourse.psychopy.org/u/egashi9)\
**Post date:** [June 18, 2022, 7:16am UTC](https://discourse.psychopy.org/t/how-to-display-a-feedback-message-that-gives-the-number-of-correct-answers-up-to-that-point-in-numbers/29620/5 "2022-06-18T07:16:46Z")

</div>

Thank you reply & sorry for the late reply.

I tried it.  
But for some reason, the keys stopped responding…  
I’ll give it some trial and error!

Thank YOU!!
