Using a list created based on previous stimuli

OS
Mac Big Sur

PsychoPy version
2021.2.3

What are you trying to achieve?:
I wanted to create a list that contains words that participants indicate as being unknown in a familiar loop. The list will include the word, its definition and a context sentence. Then I need to call this list in a learning loop. The words, definitions, and context sentences need to be called one by one until all the words are learned

What did you try to make it work?:
I created a learning list and then in the learning loop I call it and code variables with the folllowing code :

word = Learning_Set[learn_trials.thisN]
definition = Learning_Set[learn_trials.thisN]
context_sentence = Learning_Set[learn_trials.thisN]

Then I have text components that call them
I have the learning_loop n set to 3, just to try and get it to work before I include all the trials.

What specifically went wrong when you tried that?:
So it works but it displays the word, definition, and context sentence all in a line instead of calling them separately for each text component that I created. How do I call only the word part of the trial that is separate form the definition and context sentence that is present in that same trial?

What is Learning_Set? Is it a list of dictionaries?

It might be you want

word = Learning_Set[learn_trials.thisN][0]

or

word = Learning_Set[learn_trials.thisN]['word']