If I have a list/array such as:
B = [[1,2,3,4],[2,3,4,5],[4,3,2,4]]
(there are 50 elements in total)
I only want to show the 2nd value of each element. e.g. 3,4,2
I have tried something like B([:,2]) but I keep getting an error "TypeError: list indices must be integers or slices, not tuple"
I was thinking I might have to use some sort of loop?
print([i[2] for i in B])