Python code not working as expected
<p>I am new to Python language, and I am running into this problem, the code below is not returning the expecting value:</p>

<pre><code>def rabbits(n):
    first = 1
    second = 1

    if n == 1 or n == 2:
        return 1
    while n &gt; 2:
        first, second = second, first + second
        n -= 1

    if n &gt; 5:
        die1 = 1
        die2 = 1
        if n == 6 or n == 7:
            return second - 1
        while n &gt; 7:
            die1, die2 = die2, die1 + die2
            n -= 1
        return second - die2
    return second
</code></pre>

<p>I am hoping that rabbits(6) would be returning 7, but it returns 8 instead. Can anyone help me find the wrong stuff in here? Thanks!</p>
