++i operator in Python
<p>I'm trying to translate one of my Java projects to Python and I'm having trouble with one certain line. The Java code is:</p>

<pre><code>if (++j == 9)
    return true;
</code></pre>

<p>What I think this is supposed to be in python is </p>

<pre><code>if (j += 1) ==9:
        return True
</code></pre>

<p>...but I am getting an error <code>SyntaxError: invalid syntax</code>.</p>

<p>How can I translate this Java to Python?</p>
