title: Python MemoryError on large array
body: <p><strong>This is the python script that I'm trying to run:</strong></p>
  
  <pre><code>n = 50000000000 ##50 billion 
  b = [0]*n
  for x in range(0,n):
      b[x] = random.randint(1,899999)
  </code></pre>
  
  <p>... But the output I'm getting is:</p>
  
  <pre class="lang-none prettyprint-override"><code>E:\python\&gt; python sort.py
  Traceback (most recent call last):
    File "E:\python\sort.py", line 8, in &lt;module&gt;
      b = [0]*n
  MemoryError
  </code></pre>
  
  <p>So, what do I do now?</p>