Text function: Printing array/string to text at the end of an experiment

I am trying to display an array in particular as text at the end of my experiment. I want to show the user’s answers alongside the correct answers and their score. I currently have the following in code:

Diring experiment:


This part works correctly and I can see the list of their answers printed to the console

end of experiment, inside "text’ function

$print(i, end = ' ')

I have tried so many options here to print the array but I have not had any luck whatsoever.

Please help! Thank you in advance!