python testing equality of three values
<p>does this do what I think it does? I seems to me that yes, I am asking to be sure..</p>

<pre><code>if n[i] == n[i+1] == n[i+2]:
    return True
</code></pre>

<p>is it equal to:</p>

<pre><code>if n[i] == n[i+1] and n[i+1] == n[i+2]:
    return True
</code></pre>

<p>?</p>
