The output of the program will be False
.
In Python, the and
operator returns True
only if both operands are True
. Since hat
is True
and coat
is False
, the expression hat and coat
evaluates to False
.
1 answer
The output of the program will be False
.
In Python, the and
operator returns True
only if both operands are True
. Since hat
is True
and coat
is False
, the expression hat and coat
evaluates to False
.