Test whether tuples have the same content
<p>I have to implement a function <code>cmpT</code> which should return the following results:</p>

<pre><code>&gt;&gt;&gt; cmpT((1, 2), (1, 2))
True
&gt;&gt;&gt; cmpT((1, 2), (2, 1))
True
&gt;&gt;&gt; cmpT((1, 2), (1, 2, 1))
False
&gt;&gt;&gt; cmpT((1, 2), ())
False
</code></pre>

<p>My Code:</p>

<pre><code> def cmpT(t1, t2): 
    if t1 == t2:
        return True
    else:
        return False
</code></pre>

<p>It does not give the required output, <code>cmpT((1, 2), (2, 1))</code> does not return <code>True</code>. What is wrong?         </p>
