Re: Accessing multidimensional lists with an index list

2005-04-17 Thread Kent Johnson
Gabriel Birke wrote: Given the multidimensional list l: l = [ {'v1': 1, 'v2': 2}, [ {'v1':4, 'v2': 7}, {'v1': 9, 'v2': 86}, [ {'v1': 77, 'v2': 88}] ] ] I want to access specific items the indices of which are stored in another list. For now,

Accessing multidimensional lists with an index list

2005-04-17 Thread Gabriel Birke
Given the multidimensional list l: l = [ {'v1': 1, 'v2': 2}, [ {'v1':4, 'v2': 7}, {'v1': 9, 'v2': 86}, [ {'v1': 77, 'v2': 88}] ] ] I want to access specific items the indices of which are stored in another list. For now, I created a function