In Python, can I single line a for loop over iterator with an IF filter?
<p>Silly question:<br>
I have a simple for loop followed by a simple if statement:  </p>

<pre><code>for airport in airports:
    if airport.is_important:
</code></pre>

<p>and I was wondering if I can write this as a single line somehow.<br>
So, yes, I can do this:  </p>

<pre><code>for airport in (airport for airport in airports if airport.is_important):
</code></pre>

<p>but it reads so silly and redundant ("for airport in airport for airport in airports...").<br>
Is there a better way?</p>
