title: Concatenate lists in JINJA2
body: <p>How can I concatenate two list variables in jinja2?</p>
  
  <p>E.G.</p>
  
  <pre><code>GRP1 = [1, 2, 3]
  GRP2 = [4, 5, 6]
  
  {# This works fine: #}
  {% for M in GRP1 %}
      Value is {{M}}
  {% endfor %}
  
  
  {# But this does not: #}
  {% for M in GRP1 + GRP2 %}
      Value is {{M}}
  {% endfor %}
  </code></pre>
  
  <p>So, I have tried to concatenate the two lists using + (like you would in Python), but it turns out that they are not lists, but python <code>xrange</code> objects:</p>
  
  <pre><code>jijna2 error: unsupported operand type(s) for +: 'xrange' and 'xrange'
  </code></pre>
  
  <p>Is there a way for me to iterate over the concatenation of GRP1 and GRP2 in the same for loop?</p>