title: Python: Why does reversed(a)==reversed(a) returns False where a is an array?
body: <p>This is the code </p>
  
  <pre><code>&gt;&gt;&gt; a=[1,3,2]
  &gt;&gt;&gt; a
  [1, 3, 2]
  &gt;&gt;&gt; a= 3,1,2
  &gt;&gt;&gt; a
  (3, 1, 2)
  &gt;&gt;&gt; sorted(a)
  [1, 2, 3]
  &gt;&gt;&gt; sorted(a)==sorted(a)
  True
  &gt;&gt;&gt; reversed(a)==reversed(a)
  False
  </code></pre>
  
  <p>Further</p>
  
  <pre><code>&gt;&gt;&gt; b= reversed(a)
  &gt;&gt;&gt; sorted(b)==sorted(b)
  False
  &gt;&gt;&gt; sorted(b)==sorted(b)
  True
  </code></pre>
  
  <p>I saw this in a youtube video and can't figure out what's happening.</p>
  
  <p>and that guy also showed</p>
  
  <pre><code>&gt;&gt;&gt; sorted(b)
  []
  </code></pre>