Hi,may I know why nothing is printed out when my code is like that?
Thanks
def check_bit4(input):
mask=0b1000
desired= mask & input
if desired>0:
return βonβ
else:
return βoffβ
print check_bit4(70)
Hi,may I know why nothing is printed out when my code is like that?
Thanks
def check_bit4(input):
mask=0b1000
desired= mask & input
if desired>0:
return βonβ
else:
return βoffβ
print check_bit4(70)
Helps if people can copy the code and run it.