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 trialAllan Pedersen
2,421 PointsProblems with in code challenge
I'm really having difficulties seeing where I'm going wrong on this one. I've seen the training video for quite some time now, but none the wiser.
Please help me find the devil in the details. He's making me do the fist at the screen.
store_open = None
store_hours = [9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
time = 11
if time in store_hours:
store_open = True
else:
store_open = False
1 Answer
Jennifer Nordell
Treehouse TeacherYour code is functional. The "devil in the details" is that he's going to set the time. Not you. You set the time to 11. Leave out that detail and you should be good to go!
store_open = None
store_hours = [9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
if time in store_hours:
store_open = True
else:
store_open = False
Allan Pedersen
2,421 PointsAllan Pedersen
2,421 PointsThank you, Jennifer! I didn't catch that "minor" detail. :)
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherYou're quite welcome! We all have that moment where we do what we THINK they want then have to go back and see what they ACTUALLY want :)