p>In general, <strong>don't repeat yourself</strong> (DRY). It wastes space and can be
          computationally inefficient. It can also make the code less readable.</p>

        <p>Do not repeat complex expressions:</p>

        <blockquote>
          <p>Bad</p>
        </blockquote>

        <pre><code>if a + b &#x2d; 3 * h / 2 % 47 == 4:
    total += a + b &#x2d; 3 * h / 2 % 47
    return total</code></pre>

        <p>Instead, store the expression in a variable:</p>

        <blockquote>
          <p>G