Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Iteration over dictionary

<dl>
{% for key, value in my_dict.items() %}
   <dt>{{ key|e }}</dt>
   <dd>{{ value|e }}</dd>
{% endfor %}
</dl>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Iteration #dictionary
ADD COMMENT
Topic
Name
8+2 =