I want to add a single element : -globals()["q"+str(i)][0][u] to the array mainarray while being inside a loop.
for i in mylist:
for u in 0,5,10:
np.append(mainarray['C'][u][i],-globals()["q"+str(i)][0][u])
After finishing the loop the changes are not save, how can I achieve that?