lst = ['hey','what',0,False,None,14]
print(sum(x is not None for x in lst))
"""Counting the number of None in list
"""
lst = [False, 0.982, None, "lol", True, None, 90]
count_1 = lst.count(None)
count_2 = sum(_ is None for _ in lst)
print(count_1)
print(count_2)
## 2
Check out the source for more info!
len(lst) - lst.count(None)