Bitwise OR¶
Bitwise OR operator (|
) can be used to perform binary OR operation on two numbers.
Syntax
operand1 | operand2
Example
a | b
1 | 1
# 1
2 | 4
# 6