educative.io

Educative

Bitwise operators

What is the purpose of learning bitwise operators?

Bitwise operators are used in Python specifically when dealing with binary numbers. A possible use case would be when manipulating the headers of network packets, as those are in binary. In languages such as C++ and Java bitwise operations are faster than regular ones, but that is not the case in Python though.