Show some love for bitwise operators | SoloLearn: Learn to code for FREE!


Show some love for bitwise operators

Does anyone have good examples of uses of bitwise operators? Post them here! There’s a Python challenge that asks which of **, +, ~, and —> are valid Python operators, and the answer doesn’t include ~! Apparently, Python’s bitwise operators, >>, <<, |, &, ^, and ~ aren’t very well appreciated. Let’s see what you can do with them! (Disclaimer: Yes, I’m here because I’m bitter about losing a challenge, but I do really want to see some interesting uses of the bitwise operators.)

5/9/2018 2:47:13 PM

Talley Berry

3 Answers

New Answer


If you wish, I can make a Python version for you, or try and assist you in making one.


It's not Python, but:


Platinum Sololearner Warith Vatanaplachaigoon from Thailand has a great code for testing your knowledge of bitwise operators. Check it out!