+ 2
What is the vertical line " | " do??
3 Respostas
+ 9
https://www.sololearn.com/learn/4073/?ref=app
https://www.sololearn.com/learn/4070/?ref=app
+ 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
0
Thak you