is_integer_singleton

mathtools.is_integer_singleton(expr)

Is true when expr is an integer tuple of of length 1.

>>> mathtools.is_integer_singleton((19,))
True

Otherwise false:

>>> mathtools.is_integer_singleton(('text',))
False

Returns true or false.