Python2.6 IF Using AND OR
<p>I can't compare one variable with multiple values.</p>

<p>For example I need that variable called <code>_query</code> must be different from <code>Sleep</code> and <code>Binlog</code>.</p>

<pre><code>if (query != "Sleep") or (query != "Binlog Dump"):
    print query[4]
</code></pre>

<p>With the above code my script is not working. Could you help me?</p>

<p>Thanks.</p>
