+ 2

What is the vertical line " | " do??

https://code.sololearn.com/cSWg1Af3Ms7A/?ref=app

17th Feb 2020, 4:20 PM
Mohamed El Mujtaba
Mohamed El Mujtaba - avatar
3 Réponses
+ 9
https://www.sololearn.com/learn/4073/?ref=app https://www.sololearn.com/learn/4070/?ref=app
17th Feb 2020, 4:36 PM
Kevin ★
+ 2
It is bitwise OR https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2280/?ref=app https://www.sololearn.com/learn/4073/?ref=app 0 OR 0 = 0 1 OR 0 = 1 0 OR 1 = 1 1 OR 1 = 1 5 in binary = 00000101 3 in binary = 00000011 5 | 3 = 00000111 = 7
17th Feb 2020, 4:40 PM
Denise Roßberg
Denise Roßberg - avatar
0
Thak you
17th Feb 2020, 4:38 PM
Mohamed El Mujtaba
Mohamed El Mujtaba - avatar