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 trialmamadou diene
Python Web Development Techdegree Student 1,971 PointsSee 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
else:
store_open = False
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHi Mamadou,
You are very close!
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! :)