Opposite of any() function
<p>The Python built-in function <code>any(iterable)</code> can help to quickly check if any <code>bool(element)</code> is <code>True</code> in a iterable type.</p>

<pre><code>&gt;&gt;&gt; l = [None, False, 0]
&gt;&gt;&gt; any(l)
False
&gt;&gt;&gt; l = [None, 1, 0]
&gt;&gt;&gt; any(l)
True
</code></pre>

<p>But is there an elegant way or function in Python that could achieve the opposite effect of <code>any(iterable)</code>? That is, if any <code>bool(element) is False</code> then return <code>True</code>, like the following example:</p>

<pre><code>&gt;&gt;&gt; l = [True, False, True]
&gt;&gt;&gt; any_false(l)
&gt;&gt;&gt; True
</code></pre>