The Man Behind the Bit Mask.
This the error I received.
Oops, try again. Your function fails on check_bit4(0b1000). It returns "'on" when it should return "on".
I'm not quite sure what is wrong, my code looks correct, and apprently it's returning what it is supposed to...
def check_bit4(input): num=0b1100 mask=0b1000 desired=num & mask if input >= desired: return "'on" else: return "off"