The logical operands and,or will come after division operator in this particular scenario as per the rules of precedence.
First it will calculate 333/12 which is 27 and then it will become 22 and 27 or 1 which is equivalent to 27 as and,or have equal precedences.
22 and 333/12 or 1
22 and 27 or 1
(22 and 27) or 1 OR 22 and (27 or 1)
27 ,27
But in case of Python 3.2 it's computing to 27.75.
>>> 22 and 333/12 or 1
27.75
>>> (22 and 333/12) or 1
27.75
>>> 22 and (333/12 or 1)
27.75