python basic level generator and list questions
<pre><code>my_nums =(i*i for i in [1,2,3,4,5])
for k in (my_nums):
    print(k)
GG = list(my_nums)

print(GG)
</code></pre>

<p>It prints:</p>

<pre><code>1
4
9
16
25
[]

Process finished with exit code 0
</code></pre>

<p>I can't understand why is <code>[]</code> value empty(it should be <code>[1,4,9,16,25]</code>)? Also, does <code>for-loop</code> convert generator values to list?</p>