Understanding 'NOT' operator


#1

I cannot get my head around the NOT operator. Is there someone that could explain it to me in a simple way?


#2

it makes true false and false true, in other words, the condition are swapped:

print not True # false
print not False # true

this is useful for reversing conditions


#3

Perfect, thank you for your help!


#4