2 column n rows array- operation on elements of two colums in each row
<p>I have an array of n rows and two columns (array).
I have another variable (a) which I am using as reference.</p>

<pre><code> for a between (1-10000)
     if    column1 of ARRAY&lt;= a &lt;= column2 of the ARRAY
            save the tuple (a, YES)
</code></pre>

<p>This resultant tuple I will use for further operation</p>

<p>The <a href="http://docs.scipy.org/doc/numpy/reference/arrays.html" rel="nofollow">NumPy documentation</a> has all the information you may need.</p>

python arrays numpy