When I run print(25 and 3)
in python, the output is always the latter value. In this case, it prints 3
, except when one of the values(at the place of 25 or 3) is a 0
print(0 and 3)
would print 0
Why isn't it returning a boolean value? How exactly is it being processed?