0
Is there a a pattern in this? It is very confusing to understand.
#X and Y are integers print(X|Y)
4 Respostas
+ 4
It's the bitwise operator OR.
https://www.sololearn.com/learn/4073/
+ 2
The | is a bitwise or. Which has to do with manipulating bits. In general you probably won't ever need to use it, but here's a stackoverflow with some good awnsers if you're curious enough:
https://stackoverflow.com/questions/1746613/bitwise-operation-and-usage
+ 1
Thnks! Ahri Fox
+ 1
Thanks! Diego