Does Python support short-circuiting?

boolean-logic, python, short-circuiting

Solution

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

Problem

Does Python support short-circuiting in boolean expressions?

Original source

Related problems