0

Can someone explain this output?

x = 2 y = 3 print(x&y) Output: 2 I can't understand? https://code.sololearn.com/c3cCf2X62gv9/?ref=app

3rd Aug 2018, 6:37 AM
Paul Grasser
Paul Grasser - avatar
1 Resposta
+ 2
bit wise comparison. https://www.tutorialspoint.com/JUMP_LINK__&&__python__&&__JUMP_LINK/bitwise_operators_example.htm for your question 00000011 & 00000010 > 00000010 or 2 in base 10.
3rd Aug 2018, 6:40 AM
Amir Galanty
Amir Galanty - avatar