Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

python jinja2 loop dict

{% for dict_item in parent_list %}
   {% for key, value in dict_item.items() %}
      <h1>Key: {{key}}</h1>
      <h2>Value: {{value}}</h2>
   {% endfor %}
{% endfor %}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #loop #dict
ADD COMMENT
Topic
Name
7+9 =