title: Two variables in Python have same id, but not lists or tuples
body: <p>Two variables in Python have the same <code>id</code>:</p>
  
  <pre><code>a = 10
  b = 10
  a is b
  &gt;&gt;&gt; True
  </code></pre>
  
  <p>If I take two <code>list</code>s:</p>
  
  <pre><code>a = [1, 2, 3]
  b = [1, 2, 3]
  a is b
  &gt;&gt;&gt; False
  </code></pre>
  
  <p>according to <a href="https://stackoverflow.com/questions/27460234/two-variables-with-the-same-list-have-different-ids-why-is-that?answertab=votes#tab-top">this link</a> Senderle answered that immutable object references have the same id and mutable objects like lists have different ids.</p>
  
  <p>So now according to his answer, tuples should have the same ids - meaning:</p>
  
  <pre><code>a = (1, 2, 3)
  b = (1, 2, 3)
  a is b
  &gt;&gt;&gt; False
  </code></pre>
  
  <p>Ideally, as tuples are not mutable, it should return <code>True</code>, but it is returning <code>False</code>!</p>
  
  <p>What is the explanation?</p>