I am not even sure how to word my question due to me being quite new to python. The basic concept of what I want to accomplish is to be able to search for something in a 2D array and retrieve the right value as well as the values associated with that value (sorry for my bad explanation)
e.g.
array=[[1,a,b],[2,x,d],[3,c,f]]
if the user wants to find 2, I want the program to retrieve [2,x,d] and if possible, put that into a normal (1D) array. Likewise, if the user searches for 3, the program should retrieve [3,c,f].
Thank you in advance (and if possible I want a solution that does not involve numpy)
[[1,a,b],[2,x,d],[2,c,f]]? Will you always search for the first element in these lists, or could you, say, search fora, too?