title: Python replace elements in array at certain range
body: <p>I've an array, for example: </p>
  
  <pre><code>Array = [100]*100
  </code></pre>
  
  <p>Then I want to do this: </p>
  
  <pre><code>Array[0:10] = 1
  </code></pre>
  
  <p>The Array should look like this: </p>
  
  <pre><code>Array = [1,1,1,1,1,1,1,1,1,1,100,100....,100]
  </code></pre>
  
  <p>But Python says No and gives me </p>
  
  <pre><code>Array[0:10] = 1 can only assign an iterable
  </code></pre>
  
  <p>What does it want and how can I fix it?</p>