+ 3
Generators generate objects, lists hold references to objects. They are very different things
If you don't call the objects of a generator, all you'll get is a generator object:
l = (i for i in range(10))
print(l) # <generator object <genexpr> at 0x...>
# call objects
for item in l:
print(l) # 0, 1, 2, ...
You can wrap the generator object in a list(). This forces python to actually generate the objects (instead of merely creating a generator object) and put them in a list:
print(list(l)) # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]