Conditionals And Control Flows
Michael Selik
michael.selik at gmail.com
Wed May 4 10:56:25 EDT 2016
On Wed, May 4, 2016 at 10:46 AM Cai Gengyang <gengyangcai at gmail.com> wrote:
> I am trying to understand the boolean operator "and" in Python. It is
> supposed to return "True" when the expression on both sides of "and" are
> true
>
Not exactly, because they will short-circuit. Take a look at the docs. (
https://docs.python.org/3/library/stdtypes.html#boolean-operations-and-or-not
)
More information about the Python-list
mailing list