Lesson 11/14 Help


#1

def check_bit4(input):
mask = 0b1000
if input >= mask
return “on”
else:
return “off”

I’m getting a syntax error on line 3. Any ideas?


#2

Remember to include the colon at the end of that line.


#3

Thanks! I l can’t believe I forgot that.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.