bitwise AND : Bit « Data Type « Python






bitwise AND

bitwise AND
x = 1        # 0001

x & 1        # bitwise AND: 0001

print x
           
       








Related examples in the same category

1.Bit calculation: shift leftBit calculation: shift left
2.Bitwise orBitwise or