Post

@PythonPr Answer: B) [0, 1, 2], []
This code demonstrates the behavior of a generator expression in Python.
A generator is a special type of iterator that generates values on the fly, one at a time, and does not store all of its values in memory.
The line g = (i for i in range(3))
English

@PythonPr B. The generator is exhausted when the first list() is called!
English

@PythonPr C. Option B is close but it would be right if it omits comma after first list.
English















