title: Python Array Memory Footprint versus List
body: <p>I am flipping through the book Fluent Python. It states that for a sequence of all numbers, array is more efficient and faster than a List. From what I gather from this, it also has less of a memory overhead. It states "A Python array is as lean as a C array." </p>
  
  <p>I am curious as to why an array here would show as having more memory than an list.</p>
  
  <pre><code>import array
  from random import random
  import sys
  
  floats = array.array('d', (random() for i in range(10**7)))
  L = [random() for i in range(10**7)]
  print(sys.getsizeof(floats))
  print(sys.getsizeof(L))
  </code></pre>
  
  <p>output</p>
  
  <pre><code>81940352
  81528056
  </code></pre>