Does Python support short-circuiting?

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

Leave a Comment