title: How do I get the coordinate of a specific number in an array in python?
body: <p>If I have a matrix say</p>
  <pre><code>grid = np.array([ 
  [0,2,1,0],
  [0,1,0,-1]])
  </code></pre>
  <p>how do I call the specific coordinates of a number?
  If I wanted to call for 2 and then assign the coordinates of 2 to an variable</p>
  <pre><code>start = np.where(grid==2) ## I want to assign my start point to 2 
  start =start.index ## but actually I want to only use the coordinates of the point, so (0,1)
  
  goal = np.where(grid==-1) 
  goal = goal.index ## I want my code to realize the goal is actually (1,3)
  </code></pre>