+ 3
WHO can explain That?
what does | do in python? See example Code. https://code.sololearn.com/c7ddu5HswU6o/?ref=app x = 5 y = 3 print(x|y) a = 5 b = 2 print(a|b)
3 Respostas
+ 8
It is bitwise or operator.
https://www.sololearn.com/learn/4073/?ref=app
+ 2
________________________
|char | decimal | binary |
|_____|_________|________ |
| 5 | 53 | 110101 |
| 3 | 51 | 110011 |
|_____|_________|________ |
| 7 | 55 | 110111 |
|_____|_________|________ |
| 5 | 53 | 110101 |
| 2 | 50 | 110010 |
|_____|_________|________ |
| 7 | 55 | 110111 |
|_____|_________|________ |
0
I have written a little code which I hope will help you understand.
https://code.sololearn.com/c16jc5Iod9IF/?ref=app