How to use more than one condition in Python for loop?
<p>How to use more than one condition in Python for loop?</p>

<pre><code>for example in java:
    int[] n={1,2,3,4,6,7};
    for(int i=0;i&lt;n.length &amp;&amp; i&lt;5 ;i++){
      //do sth
    }
</code></pre>

<p>How dose the python for loop do this?</p>
