title: Initializing a large list of booleans in Python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13382774/initialize-list-with-same-bool-value">Initialize list with same bool value</a>  </p>
  </blockquote>
  
  
  
  <p>I'm attempting to make a prime number generator in python 2.7 and plan to use an array (or list) of booleans which will indicate whether a given number is prime.</p>
  
  <p>Let's say I wanted to initialize a list of 5000 booleans, how would I do so without having to manually type <code>[True, True, ...]</code></p>