New course! Every coder should learn Generative AI!
Try a free lesson+ 1
https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/precedence-associativity
https://realpython.com/python-or-operator/
if X or Y or (Z == 0): # because of precedence
if 1 or 2 or (3 == 0):
if (1 or 2) or True: # also because of precedence
if 1 or True: # 1 or 2 = 1
if 1: # 1 is truthy