Show some love for bitwise operators | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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.)

9th May 2018, 2:47 PM
Talley Berry
Talley Berry - avatar
1 Réponse
+ 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
9th May 2018, 2:47 PM
Talley Berry
Talley Berry - avatar