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

+1

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

+5

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

+4

It's not Python, but: https://code.sololearn.com/cGsXE2aY43Cy/?ref=app

+1

Platinum Sololearner Warith Vatanaplachaigoon from Thailand has a great code for testing your knowledge of bitwise operators. Check it out! https://code.sololearn.com/WE7zSQ80RLPp/?ref=app