Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generator expressions python

>>> even_squares = (x * x for x in range(10)
                    if x % 2 == 0)
Source by dbader.org #
 
PREVIOUS NEXT
Tagged: #generator #expressions #python
ADD COMMENT
Topic
Name
2+2 =