I have come across strange operators such as &, |, ^ etc. How exactly do these operators work?
>>> 10 | 7
15
>>> 10 ^ 7
13
>>> 10 & 7
2
>>> 
The pattern does seem quite odd, and most of the sources out there do not give answers that are easy to comprehend.
 
     
    