Output of this code is 2. Can anyone explain how ?
> a = True
> b = 0
> c = 2
> print((a OR b ) AND c)
Output of this code is 2. Can anyone explain how ?
> a = True
> b = 0
> c = 2
> print((a OR b ) AND c)
Logical AND (and):
Return the first Falsey value if there are any, else return the last value in the expression.
Logical OR (or):
Return the first Truthy value if there are any, else return the last value in the expression.