Length of list as condition in any function for list comprehension
<p>I want to use the length of my list for which I'm generating a list comprehension as a condition along with those in the list comprehension that is being passed to the any() function itself</p>

<p>I could do this in two lines -</p>

<pre><code>li = [1,2,3,4]
lcond = [x for x in li if x &gt; 3]
any(lcond) and len(lcond) &gt;2
</code></pre>

<p>But I'd like to do it in one</p>