Check out example codes for "jinja2 iterate dict". It will help you in understanding the concepts better.

Code Example 1

{% for key, value in dict_item.items() %}
  <h1>Key: {{key}}</h1>
  <h2>Value: {{value}}</h2>
{% endfor %}

Learn ReactJs, React Native from akashmittal.com