all_are_equal

mathtools.all_are_equal(argument)

Is true when argument is an iterable collection of equal items. Otherwise false.

>>> mathtools.all_are_equal([99, 99, 99, 99, 99, 99])
True
>>> mathtools.all_are_equal(17)
False

Is true when argument is empty:

>>> mathtools.all_are_equal([])
True

Returns true or false.