0
What is the role of it?
5|5 Can you guys tell me what is the role of this symbol "|"
4 Respostas
+ 3
Binary operator "or" which operates on bits ,just google about it .
+ 2
if outside quotes, | operator is binary OR operator...
if inside quotes, it could be a lot of things, but usually act as a separator...
+ 1
Idk if it's the same in python, but in C/C++ this symbol is just bitwise 'or'. For example
10|6=
1010
0110
=
1110 = 14
Because it compares those 0/1 in columns, and if there is at least one 1, then final value becomes 1 too