11/14 - Returns "None",when it should return "off"


Actually, I don't know where's the problem in this code. Need you help, codeacademy users
Test on check_bit4(0b0) returns "none"
def check_bit4(input):
if type(input)==bin:
mask = 0b1000
checking_box = input & mask
if checking_box > 0:
return "on"
return "off"


def check_bit4(num):
check = 0b1000
if num & check > 0:
return "on"
return "off"

This works fine with me... Dunno why you did the checking there!