I have an array:
array = [[1,2,3],[4,5,6]]
and I want that with one cycle to print on screen only 2 and 5, for that I did:
for i in array:
print(array[i][1])
but then I get the following error:
TypeError: list indices must be...
asked by
04.03.2018 / 21:14