# Problem to read a code on Pavlovia

**URL:** <https://discourse.psychopy.org/t/problem-to-read-a-code-on-pavlovia/27452>\
**Category:** Online experiments\
**Tags:** pavlovia\
**Created:** [February 16, 2022, 4:56pm UTC](https://discourse.psychopy.org/t/problem-to-read-a-code-on-pavlovia/27452 "2022-02-16T16:56:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [February 16, 2022, 6:17pm UTC](https://discourse.psychopy.org/t/problem-to-read-a-code-on-pavlovia/27452/2 "2022-02-16T18:17:46Z")

</div>

Hi There,

Please could you show the full text in the left hand panel for us? I think using this instead should work:

```auto
nCorr = sum(study.data['totalacertos'])
meanRT = average(study.data['key_resp_2.rt')
msg = 'Voce acertou' + str(nCorr) + 'operacoes de 192....' + str(meanRT)

```

In general, plus concatenation is smoother to translate to JS over formatted strings. and using the methods sum and average in this new way translate smoother than calling the method on the object as you have done (and as would be normal in python)

Hope this helps,  
Becca

---

_[View the full topic](https://discourse.psychopy.org/t/problem-to-read-a-code-on-pavlovia/27452)._
