Boolean trouble


How do the "not" booleans work


A boolean can have only two possible values: True and False.
not is not (no pun intended) a boolean, but a so called "logical operator". All it does is reverese your boolean.

For example:

(not False) #this would result in True
(not False and not not True) # This would also result in True


That really helped!


hey i understand the first example you gave but the second one is confusing like ic not false yeah that would be true and the "and" boolean if both are true then its true but the not not true part i dont understand