Hitung Tidak Ada dalam Daftar Python
lst = ['hey','what',0,False,None,14]
print(sum(x is not None for x in lst))
itsvinayak
lst = ['hey','what',0,False,None,14]
print(sum(x is not None for x in lst))
len(lst) - lst.count(None)