Perhaps a for-loop is more similar to your memory of other code, but a list comprehension is more similar to an English sentence.<p><pre><code>    &quot;All names longer than 4 characters in the list of cities?&quot;
    all(len(name) &gt; 4 for name in cities)

    &quot;Sum of x-squared for x from 10 to 20.&quot;
    sum(x**2 for x in range(10, 20))</code></pre>