title: Python Syntax: n % 2 == 1 and n //= 2
body: <p>Can someone explain the semantics of</p>
  <pre><code>n % 2 == 1
  </code></pre>
  <p>and</p>
  <pre><code>n //= 2
  </code></pre>
  <p>As I understood <code>n % 2 == 1</code> checks if the remainder of the division of <code>n</code> by <code>2</code> is <code>1</code>.</p>
  <p>What about <code>n //= 2</code>? Is this a floor division? But of what? <code>n</code> divided by <code>2</code>?</p>