construct generator python list code example
Example: generator expressions python
>>> even_squares = (x * x for x in range(10)
if x % 2 == 0)
>>> even_squares = (x * x for x in range(10)
if x % 2 == 0)