We have: (set1,set2)
why does print(set1 or set2)
return set1
instead of (set1 | set2)
and print(set1 and set2)
return set2
instead of set1.intersection(set2)
?
We have: (set1,set2)
why does print(set1 or set2)
return set1
instead of (set1 | set2)
and print(set1 and set2)
return set2
instead of set1.intersection(set2)
?
That is how boolean operand works
or
True/Truthy
=> return itFalse/Falthy
=> return right operandand
False/Falthy
=> return itTrue/Truthy
=> return right operand