I am developing a web using flask. I have two class objects from models.py. I need to loop over both of them at the same time in my HTML file using Jinja2.
For example: I want to have the following code in jinja2 format:
for i,j in zip(items, team):
a= i+j
Want to convert it to jinja2 format:
{% for i,j in zip(items, teams) %}
{% a=i+j %}
{% endfor%}
What is the problem with this jinja2 code?