Y
Hacker News
new
|
ask
|
show
|
jobs
by
projectorlochsa
3296 days ago
you can remove the extra parentheses after sum.
1 comments
mod
3296 days ago
I think the inner set is supposed to be brackets [].
It's a comprehension.
link
whalesalad
3296 days ago
The above commenter is correct. You can use parens in place of brackets to utilize a generator.
link
It's a comprehension.