title: Assign values to python list specific position
body: <p>I am newbie in Python and maybe my problem is very simple.</p>
  
  <p>I have created a list of 250 zeros called <em>x</em>, <code>x = np.zeros(250)</code>, and I have a loop where I perform some calculations, at each iteration I produce two x's for example in the first iteration the x[0] and x[1] and so on in a list called temp_x. i.e., the first temp_x has the x[0] and x[1]</p>
  
  <p>I want to save the output at the end of each iteration to the corresponding positions of the x. For example at the end of the first iteration temp_x has two values I want to assign them to the first positions of x.</p>
  
  <p>What I am doing wrong?</p>
  
  <pre><code>x[i, i+1] = x_temp
  </code></pre>