7 ms·
Just for fun, I thought of a way to do this if booleans didn't coerce: sum(1 for data in items if is_true(data))
by woogley 7y ago
Just for fun, I thought of a way to do this if booleans didn't coerce:
sum(1 for data in items if is_true(data))