сумма значений без

>>> sum(filter(None, [1,2,3,None]))
6
Talented Thrush