I have a list of elements. Each element is a list. Eg
a=[[1,2,3,[1,2,3,4]], [4,5,6,[2,5]], [7,8,9,[3,3,4]]...]]
How do I go about getting say the second element from each element in the outer list i.e. [2,5,...]?
a[:,2] would be nice (what other possible interpretation could it have) but it would seem that the only way for me to do this is with a for loop of some description. If it is the latter it would seem to me that I would be better rewriting my code with a named array for each element. I would then ask - when would a list actually be useful?
I could equally ask the same question if I used rounded brackets and replaced the term list with tuple which then leads me to ask why bother with the difference? what does a tuple give me that I cant achieve with a list?