title: Django Template extract list
body: <p>I have a list:</p>
  <ul>
  <li>productlinks = [google.com, tes.com, lol.com]</li>
  <li>prices = [$134, $123,$123]</li>
  </ul>
  <p>I wanna extract those list to my django template inside the bootsrap. Here is my django template code:</p>
  <pre><code>&lt;section class=&quot;py-5&quot;&gt;
          &lt;div class=&quot;container px-4 px-lg-5 mt-5&quot;&gt;
              &lt;div class=&quot;row gx-4 gx-lg-5 row-cols-2 row-cols-md-3 row-cols-xl-4 justify-content-center&quot;&gt;
                  {% for link in productlinks %}
                  &lt;div class=&quot;col mb-5&quot;&gt;
                      &lt;div class=&quot;card h-100&quot;&gt;
                          &lt;!-- Product image--&gt;
                          &lt;img class=&quot;card-img-top&quot; src=&quot;https://dummyimage.com/450x300/dee2e6/6c757d.jpg&quot; alt=&quot;...&quot; /&gt;
                          &lt;!-- Product details--&gt;
                          &lt;div class=&quot;card-body p-4&quot;&gt;
                              &lt;div class=&quot;text-center&quot;&gt;
                                  &lt;!-- Product name--&gt;
                                  &lt;h5 class=&quot;fw-bolder&quot;&gt;Fancy Product&lt;/h5&gt;
                                  &lt;!-- Product price--&gt; x  
                                  $40.00 - $80.00 -&gt; price must be here using loop to extract the list
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;!-- Product actions--&gt;
                          &lt;div class=&quot;card-footer p-4 pt-0 border-top-0 bg-transparent&quot;&gt;
                              
                              &lt;div class=&quot;text-center&quot;&gt;&lt;a class=&quot;btn btn-outline-dark mt-auto&quot; href=&quot;{{ link }}&quot; target=&quot;_blank&quot;&gt;View options&lt;/a&gt;&lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  {% endfor %}
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/section&gt;
  </code></pre>
  <p>So basically, I wanna also extract the prices list but i dont know how to place the loop after the my productlinks loop. Because it will ruins the result.</p>
  <p>and here is my views code:</p>
  <pre><code>return render(request, '/home.html', {
              'productlinks': productlinks,
              'prices': productprices
              }
          )
  </code></pre>