Account
Categories

Bitwise Operators in Python


Definition:

Bitwise operators work on binary numbers (0 and 1).

They perform operations on each bit of a number and return the result in binary form (0 or 1).

They are used for AND, OR, NOT, XOR, and bit shifting operations.

There are different types of bitwise operators as follows: