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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -