weight

mathtools.weight(sequence)

Sum of the absolute value of the elements in sequence:

>>> mathtools.weight([-1, -2, 3, 4, 5])
15

Returns nonnegative integer.