list1 = [[[1,2,3],[4,5,6],[7,8,9],[10,11,12]],[[13,14,15],[16,17,18],[19,20,21],[22,23,24]]]
for i in range(0,2):
print(list1[:][i][1])
output =
[4, 5, 6]
[16, 17, 18]
how do I get the above code to work such that:
desired output =
2 14
5 17
What is the correct indexing notation for the list? I'm having particular trouble with the list[:] format as it seems to be ignored by the above code. Thx