I am trying to get subsequence of items between 2 lists in a list of lists. For example, if I have
list=[[1,2,3,4],[],[6,9],[2],[3],[4]]
I want to extract the items ranging from list[0][1]
until list[2][1]
into another list. This resulting list would then be [2,3,4,6]
(ignoring the empty list in between).
How can I do that? I have been trying to use a for i in range(...)
loop but it is not working for me.