Hacker News new | ask | show | jobs
by iamcreasy 846 days 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#generat...