Python: Lambda function in List Comprehensions
<p>Why is the output of the following two list comprehensions different, even though f and the lambda function are the same ?</p>

<pre><code>f = lambda x: x*x
[f(x) for x in range(10)]
</code></pre>

<p>and</p>

<pre><code>[lambda x: x*x for x in range(10)]
</code></pre>

<p>Mind you, both type(f) and type(lambda x: x*x) return the same type.</p>
