0

What does this python expression test? "if a|0:"

What does this python expression test? "if a|0:"

23rd Oct 2018, 12:08 PM
mesenger
2 Respostas
+ 1
Bitwise OR. 9: 0x1001 0: 0x0000 -------------- |: 0x1001 a|0 might be a bad example because x|0 always equals x. 25|48: 25: 0x011001 48: 0x110000 --------------------- |: 0x111001 (57)
23rd Oct 2018, 12:21 PM
Anna
Anna - avatar