is_n_tuple

mathtools.is_n_tuple(argument, n)

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

>>> mathtools.is_n_tuple((19, 20, 21), 3)
True
>>> mathtools.is_n_tuple((19, 20, 21), 4)
False

Returns true or false.