Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

membership.py
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
else:
    store_open = False

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 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: