is_integer_n_tuple

mathtools.is_integer_n_tuple(argument, n)

Is true when argument is an integer tuple of length n. Otherwise false.

>>> mathtools.is_integer_n_tuple((19, 20, 21), 3)
True
>>> mathtools.is_integer_n_tuple((19, 20, 'text'), 3)
False

Returns true or false.