4 ms·
I think the second parenthesis is not needed to create the generator expression. Source [1] 6.2.8. Generator expressions ... The parentheses can be omitted on
by iamcreasy 3y ago
I think the second parenthesis is not needed to create the generator expression. Source [1]
6.2.8. Generator expressions
...
The parentheses can be omitted on calls with only one argument.
[1] https://docs.python.org/3/reference/expressions.html#generator-expressions https://docs.python.org/3/reference/expressions.html#generat...