title: Python Flask Matching Dynamic Data Points to Fixed Heading
body: <p>I am building a Flask app I have a set of 5 dynamic data points that are passed to my template. These data points are passed in a list <code>list = [1 , 2 , 3 , 4 , 5]</code>.</p>
  
  <p>I know that the data always comes out in the same order. <code>1</code> belongs to <code>Heading 1</code>, <code>2</code>, belongs to <code>Heading 2</code>, etc..</p>
  
  <p>How can I match this data with the proper heading? My initial thought was to iterate through the list </p>
  
  <pre><code>{% for item in list %}
       Heading 1: {{ item }}
  {% endfor %}
  </code></pre>
  
  <p>Obviously this wouldn't work at the heading doesn't iterate so they would all end up with <code>Heading 1</code> but I hope this clearly conveys what I am trying to accomplish. Thanks for your help.</p>