Generator comprehension
A Python expression that creates a list, using the syntax
(EXPRESSION for ITEM in ITERABLE)
(EXPRESSION for ITEM in ITERABLE if CONDITION)
similar to set-builder notation.
A Python expression that creates a list, using the syntax
(EXPRESSION for ITEM in ITERABLE)
(EXPRESSION for ITEM in ITERABLE if CONDITION)
similar to set-builder notation.