I recently saw a question on the stack asking why the wrong if statement was being executed. Although I knew what to do to fix the code, i dont understand why the bitwise and is returning a true value.
win = 5
loss = 5
val = win>0 & loss == 0
print(val)
# True
val = (win>0) & (loss == 0)
print(val)
# False
val = win>0 and loss == 0
print(val)
# False