Is there a way for python to check multiple values? : <p>Is there a way for python to check multiple values for "not equals to"? Like:</p>

<pre><code>if len(dict) != 2 or 4 or 8 or 16 or 32:
    do_something()
</code></pre>
