In the following array, I want select a sub-array from array a when an id is known
a=[['id123','ddf',1],['id456','ddf',1],['id789','ddf',1]]
I know the id i.e, id456, based on this how can I select the values ['id456','ddf',1] from a without using any loop.
I would however, recommend the use of a dictionary instead.