title: Replace values at a specific position in a list
body: <p>Maybe it's a quite a dumb question:</p>
  
  <pre><code>list = [1,1,1,1,1,1,1,1,1,1..., 1]
  </code></pre>
  
  <p>And now I want to replace the values from let's say <code>list[3:7][start:stop]</code> (excluding stop) with a 0.</p>
  
  <pre><code>list[1,1,1,0,0,0,0,1,1,..., 1]
  </code></pre>
  
  <p>If I try that, I'll get an error: </p>
  
  <pre><code>"TypeError: can only assign an iterable"
  </code></pre>
  
  <p>Do I need a <code>for</code> loop to get an iterator?</p>
  
  <p>Solved my problem for list of lists:</p>
  
  <pre><code>list[column][position_line_xi:position_line_xj] = [z]*(position_line_xj - position_line_xi)
  </code></pre>