title: In python how can I set multiple values of a list to zero simultaneously?
body: <p>Conceptually, I want to do:</p>
  
  <pre><code>arr[20:] = 0
  </code></pre>
  
  <p>where <code>arr</code> is a <code>list</code>. 
  How can I do this?</p>