<div><h3id="anyall">Any, All</h3><pre><codeclass="python language-python hljs"><bool> = any(<collection>) <spanclass="hljs-comment"># Is `bool(<el>)` True for any el?</span>
<div><h3id="anyall">Any, All</h3><pre><codeclass="python language-python hljs"><bool> = any(<collection>) <spanclass="hljs-comment"># Is `bool(<el>)` True for any el?</span>
<bool> = all(<collection>) <spanclass="hljs-comment"># Is True for all or is it empty?</span>
<bool> = all(<collection>) <spanclass="hljs-comment"># True for all? Also True if empty.</span>
</code></pre></div>
</code></pre></div>
<div><h3id="conditionalexpression">Conditional Expression</h3><pre><codeclass="python language-python hljs"><obj> = <exp><spanclass="hljs-keyword">if</span><condition><spanclass="hljs-keyword">else</span><exp><spanclass="hljs-comment"># Only one expression is evaluated.</span>
<div><h3id="conditionalexpression">Conditional Expression</h3><pre><codeclass="python language-python hljs"><obj> = <exp><spanclass="hljs-keyword">if</span><condition><spanclass="hljs-keyword">else</span><exp><spanclass="hljs-comment"># Only one expression is evaluated.</span>