<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
My code keeps getting a error that says : Oops, try again. Your function fails on check_bit4(0b0). It returns βonβ when it should return βoffβ.
<What do you expect to happen instead?>
Can I get some help here?
def check_bit4(input):
mask = 0b1000
desired = mask + input
if desired > 0:
return βonβ
else:
return βoffβ
print check_bit4(0b1000)
print check_bit4(0b1)
<do not remove the three backticks above>