Conditionals And Control Flows
Jussi Piitulainen
jussi.piitulainen at helsinki.fi
Wed May 4 12:41:58 EDT 2016
Cai Gengyang writes:
> Sorry I mistyped , this should be correct :
>
> bool_one = False and False --- This should give False because none of the statements are True
> bool_two = True and False --- This should give False because only 1 statement is True
> bool_three = False and True --- This should give False because only 1 statement is True
> bool_five = True and True --- This should give True because both statements are True
Yes.
(That is, afterwards bool_one, bool_two, ... evaluate to the stated
truth values, for the stated reasons.)
More information about the Python-list
mailing list