A Bit of This and That problem


#1




I dont get why its wrong


My Code
print bin(0b1110 | 0b101)


#2

wronf Operator, it is stated to use the AND operator '&' :slight_smile:
you used the OR operator '|'


#3

Yes, the & operator is the one to use here, rather than the | operator. You can pass this exercise by using the correct operator to peform the calculation.

However, Codecademy would really like the user to figure out what the result should be and to print that value without using the operator in the code. This is to provide the user with practice figuring out the details regarding what the & operator does with each possible combination of bit values.


#4

sorry for the late reply thank you very much


#5

thank you again sorry for the late reply


#6

use & instead of |
we've been told to use AND, not OR


#7