11/14 BItwise Operators


#1



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

Continuing the discussion from 11/14 done completed code: