I want to do the below list iteration in django templates:
foo = [\'foo\', \'bar\']; moo = [\'moo\', \'loo\']; for (a, b) in zip(foo, moo): print a, b <
It's possible to do
{% for ab in mylist %} {{ab.0}} {{ab.1}} {% endfor %}
but you cannot make a call to zip within the for structure. You'll have to store the zipped list in another variable first, then iterate over it.
zip
for