pythonreference.com
search statements, functions, methods, exceptions*
show categories
'not' test inverter
negates a test to be False (if test is True) and True (if test is False)
if not var.isdigit():
print('it is not all digits')
'not' is placed in front of any test to 'invert' it: if the test would have been True, it will be read as False, and vice-versa