all_are_positive_integers

mathtools.all_are_positive_integers(expr)

Is true when expr is a sequence and all elements in expr are positive integers.

>>> mathtools.all_are_positive_integers([1, 2, 3, 99])
True

Otherwise false:

>>> mathtools.all_are_positive_integers(17)
False

Returns true or false.