The confusion from the pointed answer to that question come from the fact that he says the OR
contains AND
which is true in your case. There's is nothing to remember here, if you use or
operator and at least one of the two expressions is True then it returns True
if none of the two expressions are True it returns False
This means that if both x
and y
are True
the or
will be True
too because as soon as the first expression x
is True
there's no need for evaluating the second one.
On the other hand, if you're using and
and the first expression doesn't evaluate to True, there's no need to evaluate the second one, since it's impossible for both of them to be True anymore.
