Surprisingly, I was unable to find the answer to this on Stack Overflow:
Does Python support short-circuiting in boolean expressions?
Surprisingly, I was unable to find the answer to this on Stack Overflow:
Does Python support short-circuiting in boolean expressions?
Yep, both and
and or
operators short-circuit -- see the docs.