Search a list for a range of numbers but return index of first example : <blockquote>
  <p>I have a list that I want to search for values from 500-535 in and I want to return the index for the first value found that is within that range.</p>
</blockquote>

<pre><code>mylist =[321, 344, 999, 512, 675, 555, 500]

rainday=forecastlist.index(range(500,531))

if not rainday:
    print("Empty")
</code></pre>

<blockquote>
  <p>Obviously this isn't working.  I want it to return 3.  I don't want the location of the other values at this time, just the first one.</p>
</blockquote>
