title: The modulo operation on negative numbers in Python
body: <p>I've found some strange behaviour in Python regarding negative numbers:</p>
  
  <pre><code>&gt;&gt;&gt; -5 % 4
  3
  </code></pre>
  
  <p>Could anyone explain what's going on?</p>