Post History
| == or This bitwise operator can sometimes be used as the replacement for or. a=-2;b=3 if(a>0)|(b>0):print(a+b) Try it online!
Answer
#1: Initial revision
# `| == or` This bitwise operator can sometimes be used as the replacement for `or`. <!-- language-all: lang-python --> a=-2;b=3 if(a>0)|(b>0):print(a+b) [Try it online!][TIO-ku6g3iux] [TIO-ku6g3iux]: https://tio.run/##K6gsycjPM/7/P9FW18g6ydaYKzNNI9HOQLNGIwlIWhUUZeaVaCRqJ2n@/w8A "Python 3 – Try It Online"