title: How to iterate over a list in if conditionals?
body: <p>Trying to iterate over range of numbers (or list) to check if values are equal. Seems very simple, but I cant seem to find a way to do it.</p>
  
  <p>I am trying to use an <code>if statement</code> to check scope of items in a 2D array.</p>
  
  <pre><code># check if x is equal to var if added to any number between 0 and 10.
  
  if var == x + any(range(10)): # not how it works, but how I want it to
  
      # do something    
  </code></pre>
  
  <p>After looking into <code>any()</code> I realize that It just returns <code>True</code> if any item in the iterate is <code>True</code></p>