pressures = [[5,6,7],
[8,9,10],
[11,12,13],
[14,15,16]]
i = 0
while (i == 2):
for row in pressures[i:]:
cycle[i] = row[i]
row[1]
Please any idea why the above code is returning just the last value of the array which is 15
I expect the output to be ;
[ 6,
9,
12,
15]
while
loop is a no-op since there is no way fori
to be 2. You might need to include more of your actual code.i != 2
.