I am newbie in Python and maybe my problem is very simple.
I have created a list of 250 zeros called x, x = np.zeros(250)
, 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]
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.
What I am doing wrong?
x[i, i+1] = x_temp