I have a dictionary with 3 keys which I am passing from render template as my_dict :
{'quiz_id': ['MT001', 'MT002', 'MT003', 'MT013', 'MT055'], 'quiz_title': ['Place Value 1', 'Place Value 2', 'Addition 1', 'Multiplication', '2D shapes properties'], 'score': ['4', '8', '9', '5', '3']}
In jinja I am trying to iterate though each key to display the values:
{% for data in my_dict: %}
<div class="row border-bottom">
<div class="col-2 my-3">
{{ data.quiz_id }}
</div>
<div class="col-7 my-3 text-start">
{{ data.quiz_title }}
</div>
<div class="col-3 my-3">
{{ data.quiz_score }}
</div>
</div>
{% endfor %}
However, this isn't working and nothing is being displayed, can anyone please suggest how to do this? The dictionary is definitely being passed as it I put {{ my_dict }}
in the column the whole dictionary is displayed on the page.