0

Which is the order of the following expression with boolean operators?

(condition1)|(condition2)&(condition3)

How to read it?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
userLx
  • 81
  • 8
  • 1
    [This chart](https://docs.python.org/3/reference/expressions.html#operator-precedence) gives order of operations. – Carcigenicate Aug 26 '21 at 15:54
  • 3
    Note those are [_bitwise_ operators](https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations), do you actually want `and` and `or`? – jonrsharpe Aug 26 '21 at 15:55
  • Both & (and) and | (or) and involed. I asked about the order – userLx Aug 27 '21 at 13:11
  • Does this answer your question? [Priority of the logical statements NOT AND & OR in python](https://stackoverflow.com/questions/16679272/priority-of-the-logical-statements-not-and-or-in-python) – Behdad Abdollahi Moghadam Oct 07 '21 at 08:57

0 Answers0