The priority of ' and ', ' or ' and ' not ' is not>and>or
First, the priority of ' and ', ' or ' and ' not ' is not>and>or.
The result of And:x and Y returns is the value that determines the result of the expression. If x is true, Y determines the result, returns Y, and if x is False, x determines that the result is false and returns X.
Or:x or Y has a true, and the result is true.
Not: Returns the "opposite value" of the result of the expression. Returns false if the expression result is true, or true if the expression result is false.
PS: Add, when print output, print (x or y), print (x and y), there are the following rules.
Or:x is true (not 0 is true), returns X otherwise returns Y.
Print (2 or 3)//2
Print (0 or 100)//100
And:x is true (not 0 is true), then Y is returned, otherwise X is returned.
Print (3 and 100)//100
Print (0 and 2)//0
And,or,not the basic syntax of Python