You’d think print(true and false or true)
will print false, but as shown above it does not.
Is that intentional or a bug?
You’d think print(true and false or true)
will print false, but as shown above it does not.
Is that intentional or a bug?
true and false gets evaluated first which returns false and then it becomes false or true. True wins.
Intentional behaviour.