I'm working on some hackerrank problems and I've looked at a couple of ways to take this input and loop through it. 

What is be best alternative to trying to decrease n on each iteration as below (as this doesn't seem to be possible). 

```
first_n = int(raw_input())

def findPercentage(n):
    if n > 1:
        studentinfo = raw_input()
        return studentinfo
        n = n - 1

result = findPercentage(first_n)
print result

```

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.