+ 3

What does the | do

I saw a Question in the challenges that says print(5|3) The answer was 7 So i tried to change the numbers to get to know what the | is doing to the number so print(86|100) The answer was 118 And now am lost

9th Apr 2022, 8:22 PM
Grandizer
Grandizer - avatar
2 odpowiedzi
+ 3
It's a bitwise 'or' operator Hope this helps... https://www.sololearn.com/learn/4073/?ref=app
9th Apr 2022, 8:23 PM
Jayakrishna 🇮🇳
+ 1
9th Apr 2022, 8:30 PM
Grandizer
Grandizer - avatar