Count positive integers ignoring None and zeros. Example: [1,-2,3,0,None,4] => 3
Implement this function:
def count_positive_ignore_none(nums: list) -> int:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: nums.
Input
[1, -2, 3, 0, None, 4]
Output
3