Python Python Basics (2015) Logic in Python Membership

See that time variable? That's what time it currently is, at least for this test. But, when you submit your code, the t

i don't see the problem in this. Help
time = 15

store_open = None
store_hours = [9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
if time is in store_hours:
    store_open = True
    store_open = False

1 Answer

Jason Anders
Jason Anders
Treehouse Moderator 144,865 Points

Hi Mamadou,

You are very close! :thumbsup:

However, "is in" is not correct python syntax. If you review the video, you will see that the key worded need for this task is in.

Other than that. Good job! :) :dizzy: