Logical AND¶
Logical AND operator (&&
) returns true
if both values are true
.
Syntax
operand1 && operand2
Example
a && b
true && true
# true
true && false
# false