A BIT of This OR That



Can someone tell me why the result was not correct please?

Replace this line with your code. Do not remove the backticks that are above or below this line.

print 14


The course checker is inspecting the Preview screen
where it expects something like

print bin(0b1111)

which is the Result of a Binary OR operation of
0b1110 or 0b101

0b1110 | 0b101


If one of the Bits or both Bits is a 1 ==>The-Result is 1

 OR | 0 1
  0 | 0 1  
  1 | 1 1  
0b00001001 (9)
0b00000100 (4)
0b00001101  <<The Binary Result
13          << the Decimal Result


Thank you so much for helping me :smiley: