for loop (conditional) and logical s operation in python
<p>I am trying to combine for loop and logical operation and as below and running into compilation error.</p>

<p>Any inputs on how to fix this?</p>

<pre><code>File "test.py", line 36
    for ((num in list) and (num not in handled_list)):
                                                        ^
SyntaxError: invalid syntax
</code></pre>
