title: Python | extracting elements from 2D array
body: <p>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)</p>
  
  <p>e.g. </p>
  
  <p><code>array=[[1,a,b],[2,x,d],[3,c,f]]</code></p>
  
  <p>if the user wants to find <code>2</code>, I want the program to retrieve <code>[2,x,d]</code> and if possible, put that into a normal (1D) array. Likewise, if the user searches for <code>3</code>, the program should retrieve <code>[3,c,f]</code>.</p>
  
  <p>Thank you in advance (and if possible I want a solution that does not involve numpy)</p>