Описание тега generator-expression
A syntactic construct in Python providing a concise way to create a generator object, with syntax similar to a list comprehension.
Quoting the Python generator expression reference:
A generator expression is a compact generator notation in parentheses:
generator_expression ::= "(" expression comp_for ")"
A generator expression yields a new generator object. Its syntax is the same as for comprehensions, except that it is enclosed in parentheses instead of brackets or curly braces.