title: Difference in sizeof between a = [0] and a = [i for i in range(1)]
body: <p>I created two separate lists <code>a</code> and <code>b</code> with same element in two different ways. Why is there a difference between the size of the two lists?</p>
  
  <pre><code>import sys
  a = [0]
  print(a)
  &gt;&gt;&gt; [0]
  print(sys.getsizeof(a))
  &gt;&gt;&gt; 72
  
  b = [i for i in range(1)]
  print(b)
  &gt;&gt;&gt; [0]
  print(sys.getsizeof(b))
  &gt;&gt;&gt; 96
  </code></pre>