Is there an efficiency difference between using and in an if statement and using multiple if statements? In other words, is something like
if expr1 == expr2 and
In either case, expr1 == expr2 evaluates to false in if, the second will not be evaluated.
expr1 == expr2
false
if