1
    return x</code></pre>

        <p>Instead, use an <code>if</code>:</p>

        <blockquote>
          <p>Good</p>
        </blockquote>

        <pre><code>if pred:
    x += 1
    return x</code></pre>


        <h3 id="parentheses">Parentheses</h3>


        <p>Don't use parentheses with conditional statements:</p>

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

        <pre><code>if (x == 4):
    ...
elif (x == 5):
    ...
while (x &lt; 10):
    ...</code></pre>

        <p>Parent