Join 36000+ teachers and students using TTIO.
The bitwise operators are similar to the logical operators, except that they work on a smaller scale -- binary representations of data.
Bitwise AND of 4-bit integers (below)
~
op1 -- The COMPLEMENT operator is used to invert all of the bits of the operand.www.teachyourselfpython.com