title: Can somebody explain how numpy.where and True/False works?
body: <p>I am new to python and numpy. I have written code to teach myself. However, I cannot comprehend how the below code produces its result.</p>
  
  <p>Input</p>
  
  <pre><code>np.where([[True, False], [True, True]], 
           [[1, 2], [3, 4]], [[9, 8], [7, 6]])
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>array([[1, 8],
         [3, 4]])
  </code></pre>
  
  <p>I do not understand how this result is achieved.</p>