Python – Does Python support short-circuiting

boolean logicpythonshort-circuiting

Does Python support short-circuiting in boolean expressions?

Best Answer

Yep, both and and or operators short-circuit -- see the docs.