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>

<p>Not empty values are equivalent to <code>True</code> while empty values are equivalent to <code>False</code>. The tuple <code>(False,)</code> is not an empty tuple so <code>if (False,)</code> always succeeds. On the other hand <code>True</code> is not equal to the singleton tuple <code>(False,)</code> so the logical expression <code>True == (False,)</code> evaluates to <code>False</code>.</p>

python tuples