title: Count numbers between a range in python
body: <p>a = 5 and b = 8</p>
  
  <p>I need to use these numbers in for loop.</p>
  
  <pre><code>for i in range(a, b):
  </code></pre>
  
  <p>These will start from 5 to 8</p>
  
  <p>If i use like below </p>
  
  <pre><code>for i in (a, b):
  </code></pre>
  
  <p>These will print 5 and 8.</p>
  
  <p>Now i need a help from you, if a = 5 and 8 means i need find the the range between 5 to 8 is 1 to 4 and   form for loop 1 to 4 </p>
  
  <p>if a = 3 and 5 means i need find the the range between 3 to 5 is 1 to 3 and  form for loop 1 to 3 .</p>