Hello,
(this question is a pure Python question, please let me know if it’s not appropriate to this place)
I have a list of tuples, each of them is (surface, tag). The tag is a simple string either “A” or “B”
I have a code
if tag is not “B”:
do something
else:
do the other thing.
This can pick up roughly 60 percent of surface "A"s, but the rest of 40 percent weave through the condition statement.
Now I tried
if tag != “B”:
do something
else:
do the other thing.
This worked.
What’s the difference of these two exactly?
Thanks.