title: What's the meaning of "(1,) == 1," in Python?
body: <p>I'm testing the tuple structure, and I found it's strange when I use the <code>==</code> operator like:</p>
  
  <pre><code>&gt;&gt;&gt;  (1,) == 1,
  Out: (False,)
  </code></pre>
  
  <p>When I assign these two expressions to a variable, the result is true:</p>
  
  <pre><code>&gt;&gt;&gt; a = (1,)
  &gt;&gt;&gt; b = 1,
  &gt;&gt;&gt; a==b
  Out: True
  </code></pre>
  
  <p>This questions is different from <a href="https://stackoverflow.com/questions/7992559/python-tuple-trailing-comma-syntax-rule">Python tuple trailing comma syntax rule</a> in my view. I ask the group of expressions between <code>==</code> operator. </p>