Hacker News new | ask | show | jobs
by projectorlochsa 3296 days ago
you can remove the extra parentheses after sum.
1 comments

I think the inner set is supposed to be brackets [].

It's a comprehension.

The above commenter is correct. You can use parens in place of brackets to utilize a generator.