SyntaxFix
Write A Post
Hire A Developer
Questions
It's because the iterable is
(x > 0 for x in list)
Note that x > 0 returns either True or False and thus you have an iterable of booleans.
x > 0
True
False