Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The in operator has a lower priority than comparison operators in Python. This means that comparison operators (such as <, >, <=, >=, ==, !=) will be evaluated before the in operator. Therefore, if a statement contains both comparison operators and the in operator, the comparison operators will be evaluated first.