title: How to count down in for loop?
body: <p>In Java, I have the following for loop and I am learning Python:</p>
  
  <pre><code>for (int index = last-1; index &gt;= posn; index--)
  </code></pre>
  
  <p>My question is simple and probably obvious for most of people who are familiar with Python. I would like to code that 'for' loop in Python. How can I do this?</p>
  
  <p>I tried to do the following:</p>
  
  <pre><code>for index in range(last-1, posn, -1):
  </code></pre>
  
  <p>I think it should be <code>range(last-1, posn + 1, -1)</code>. Am I right?</p>
  
  <p>I am thankful to anyone especially who will explain to me how to understand the indices work in Python.</p>