HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by projectorlochsa | Hacker News Reader
Parent
Full thread
projectorlochsa
·
you can remove the extra parentheses after sum.
View on HN
mod
·
I think the inner set is supposed to be brackets [].
It's a comprehension.
whalesalad
·
The above commenter is correct. You can use parens in place of brackets to utilize a generator.
Reply on news.ycombinator.com