Bitwise operators


#1

https://www.codecademy.com/courses/learn-python/lessons/introduction-to-bitwise-operators/exercises/the-man-behind-the-bit-mask-?action=resume_content_item&link_content_target=interstitial_undefined

Hi,may I know why nothing is printed out when my code is like that?
Thanks :slight_smile:

def check_bit4(input):
mask=0b1000
desired= mask & input
if desired>0:
return β€œon”
else:
return β€œoff”

print check_bit4(70)


#2

Helps if people can copy the code and run it.