A BIT of This OR That


#1


https://www.codecademy.com/en/courses/python-intermediate-en-KE1UJ/1/3?curriculum_id=4f89dab3d788890003000096


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


#2

@wearyboy,
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

#3

Thank you so much for helping me :smiley: