2 ms·How about this: sum(int(x > 10) for x in xs) Just require the conversion to be explicit.by cma 11y agoHow about this: sum(int(x > 10) for x in xs) Just require the conversion to be explicit.