title: For loops and multiple conditions
body: <p>In C++, it's possible to say:</p>
  
  <pre><code>for (int i = 0; i &lt; 100 &amp;&amp; !found; i++) {
    if (items[i] == "the one I'm looking for")
      found = true;
  }
  </code></pre>
  
  <p>so you don't need to use the "break" statement.</p>
  
  <p>In Python, I guess you need to write:</p>
  
  <pre><code>found = False
  
  for item in items:
      if item == "the one I'm looking for"
          found = True
          break
  </code></pre>
  
  <p>I know that I can write a generator which has the same code in it so I can hide this break thing. But I wonder if there is any other way to implement the same thing (with the same performance) without using extra variables or while loop.</p>
  
  <p>I know we can say:</p>
  
  <pre><code>found = "the one I'm looking for" in items
  </code></pre>
  
  <p>I'm just trying to learn if it's possible to use multiple conditions in for loops.</p>
  
  <p>Thanks.</p>