When printing statements like:
print(2 + 3 and 4 > 12)
the output is False. I can't understand why and how 5 and False returns False. Can anyone please explain how its being evaluated? How does integers and booleans interact?
When printing statements like:
print(2 + 3 and 4 > 12)
the output is False. I can't understand why and how 5 and False returns False. Can anyone please explain how its being evaluated? How does integers and booleans interact?
 
    
    The boolean A and B is only true when both A and B are true. In this case, 5 is "truthy", but False is, well, not true.
