Weird syntax error in python 3.x logic -
this question has answer here:
for reason there syntax error in following logical evaluation:
true not none , not false not not not none
the error can narrowed down statement:
false not not none
where second not
highlighted.
this isn't important @ all, interested in why might failing. ideas?
another thing remember is
, not
, is not
three separate operators. in other words, is not
not (no pun intended) combination of is
, not
.
in case of example
false not not none
python tries pass false
, not
is not
operator. since not
not valid operand, syntax error results.
Comments
Post a Comment