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