statements operators functions string methods set methods tuple methods dict methods file methods list methods exceptions exception types comprehensions multidimensionals os lambdas subprocess
Intro to Python

Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 Session 7 Session 8 Session 9




pythonreference.com

search statements, functions, methods, exceptions*

hide 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