title: Is divmod() faster than using the % and // operators?
body: <p>I remember from assembly that integer division instructions yield both the quotient and remainder. So, in python will the built-in <code>divmod()</code> function be better performance-wise than using the <code>%</code> and <code>//</code> operators (suppose of course one needs both the quotient and the remainder)?</p>
  <pre><code>q, r = divmod(n, d)
  q, r = (n // d, n % d)
  </code></pre>