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


#1

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"
else:
return "off"


#2

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

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