You are using the brackets. Which means you are forcing precedence on it. so python will first evaluate the expression 1 or 0  which is 1.  and then it will evaluate the next part,  0 == 1   which is false.
I'm trying to see if a function returns an integer who's value should be either a 1 or 0.
0 == (1 or 0)
0 is equal to 1 or 0, this sounds like it should be true, but it's not.
Why? And how to do what I'm looking to do correctly?
In Python, 0 == (1 or 0), returns False. Why doesn't it return True?