I'm pretty new to Python and could use a hand in telling the computer what I want. I understand that
A = np.array([[3,5,50],[30,2,6],[25,1,1]] for i in A: print(i) gives the output:
[3,5,50] [30,2,6] [25,1,1] And, I understand that
for i,j,k in A: print(i,j,k) gives
3 5 50 30 2 6 25 1 1 But, how would you write a loop to get the following output without using a print statement three times?
3 5 50 30 20 6 25 1 1 (this is really general and I'm applying it to a large array and wanting to set specific values in the array equal to zero)