title: While n > 1. Decrease n by 1 on each iteration
body: <p>I'm working on some hackerrank problems and I've looked at a couple of ways to take this input and loop through it. </p>
  
  <p>What is be best alternative to trying to decrease n on each iteration as below (as this doesn't seem to be possible). </p>
  
  <pre><code>first_n = int(raw_input())
  
  def findPercentage(n):
      if n &gt; 1:
          studentinfo = raw_input()
          return studentinfo
          n = n - 1
  
  result = findPercentage(first_n)
  print result
  </code></pre>
  
  <p>As I'm knew to this, I understand that my logic might be flawed.
  The input is passed as stdin with the first line listing the total number of lines to follow. I will want to perform a single operation on every line after the first line with the exception of the last line where I'd look to perform a different operation.</p>