What is difference between if (False,) and True == (False,)
<p>I learned python 3 last year, but I have barely experience.</p>

<p>I am reviewing about tuple again.</p>

<p>I would like to figure out difference between  <code>if (False,)</code> and <code>True == (False,)</code></p>

<p>Since <code>if (False,):</code> is true, but <code>True == (False,)</code> is false, I am very confused.</p>

<ol>
<li><p>The boolean value of a tuple is <code>True</code> if it has contents, if it is empty it is <code>False</code>. Because <code>(False,)</code> is a tuple with one element it's boolean value is <code>True</code>.</p></li>
<li><p>You are comparing a <code>tuple</code> to a <code>bool</code>, that will always result in <code>False</code>.</p></li>
</ol>

python tuples