Count Not None
Sum
sum(x is not None for x in lst)
References
[1] [email protected], How to count the number of occurences of None
in a list?
[2] [email protected], Counting the number of True Booleans in a Python List
sum(x is not None for x in lst)
[1] [email protected], How to count the number of occurences of None
in a list?
[2] [email protected], Counting the number of True Booleans in a Python List