title: fetching list elements using jinja2 under flask app
body: <p>I have a list say list[a][b] of length 10.
  I want to print from list[0][b] to list[10][b] and use it in <a href="http://jinja.pocoo.org/" rel="nofollow">jinja2</a> template.</p>
  
  <pre><code>{% for i in test %}
  &lt;p&gt; {{test[i][0]}} &lt;/p&gt;
  {% endfor %}
  </code></pre>
  
  <p>throws error:</p>
  
  <pre><code>UndefinedError: list object has no element 
  </code></pre>