Count aucun dans la liste 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)