To make it even more clear, you can store the generator in a variable and pass it around:<p><pre><code>    &gt;&gt;&gt; x = (a*a for a in range(3))
    &gt;&gt;&gt; type(x)
    &lt;type &#x27;generator&#x27;&gt;</code></pre>