title: How to use string with integer variable value combine in range function?
body: <p>How can I use jinja2 to concatenate strings and numbers.</p>
  
  <p>Ansible 2.5 .</p>
  
  <p>I have two variables Point1 and Point2 and both are integer variables(some randome numbers based on some calculation.
  Point1 = 5
  Point2 = 7</p>
  
  <p>Here, I want to use them in range function. How would I use them.</p>
  
  <pre><code>{% for x in range(2) %}
  ---
  {% for i in range('Point'+x|string) %} &lt;!-- here I'm trying to access Point1 and Point2 variable values one by one--&gt;
  ---
  {% endfor %}
  {% endfor %}
  </code></pre>
  
  <p>I tried like below as well but the value is becoming as zero.</p>
  
  <pre><code>{% set point = ('point'+x|string)|int %}
  </code></pre>
  
  <p>Range function requires integer value but here I'm giving string value.</p>
  
  <p>Please suggest me how can I access those values in range function.</p>
  
  <p>Can anyone please suggest?</p>