Below is the scenario.
>>> False and 0
=> False
>>> 0 and False
=> 0
Both the conditions are same, but why is it returning different results?
>>> 0 or False
=> False
>>> False or 0
=> 0
Similarly, both the conditions should return same results, but why are they different?
The same applies in case of True
and 1