I am doing some and, or operations in python and I am getting a very different result. I am not able to understand the logic behind this.
input -> 22 & 1
output-> 0
input -> 22 & 21
output-> 20
input -> 34 | 30
output ->62
input -> 2 | 9
output -> 11
Please assist me in understanding the logic Screenshot attached