Search code examples
pythonboolean-logicshort-circuiting

Does Python support short-circuiting?


Does Python support short-circuiting in boolean expressions?


Solution

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