python
List counter via confition:
from functools import reduce a = reduce(lambda c, el: c + int(el > 0), [1,5,7], 0) print(a) ## output: # 7
(ваш голос учтен)
from functools import reduce a = reduce(lambda c, el: c + int(el > 0), [1,5,7], 0) print(a) ## output: # 7