Unexpected mathematical output
<p>I am trying to count my eggs in an exercise in Learning Python the Hard Way. The formula for counting the eggs is:</p>

<pre><code>print (3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6)
</code></pre>

<p>and the suggested answer is <code>7</code>. 
I am getting <code>6.75</code> and have no idea why, I think I am putting it in correctly but I could be wrong. The way it is shown above is exactly how I have put it into the program. </p>

<p>Note: The book I am using uses the 2.6 version of Python where I am using the 3.1 version. This might be part of the confusion. Please help.</p>

<p>The URL for reference <a href="http://learnpythonthehardway.org/book/ex3.html" rel="nofollow">here</a>.</p>
