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 trialSean Frye
1,167 PointsShoot! I thought this was what I was supposed to do.
Well I'm back asking for help again. I gotta get this down and stop needing help or else I'm not going to be hire-able in the field of coding. I feel like I got it down, but I clearly don't. I feel like I understand what these commands are supposed to do, but even though I feel certain about it, I'm doing them wrong thus far. It really doesn't look hard, but I keep getting stumped anyways. I'm having difficulty figuring out what exactly I am supposed to do because I feel like I am getting this down, but apparently not.
time = 15
store_open = None
store_hours = [9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
if time in store_hours = 15:
store_open = True
1 Answer
Alexander Davison
65,469 Points- Why do you have
= 15
at the end of the 5th line of code? - Did you assign
store_open
toFalse
if the time isn't in thestore_hours
?
Happy coding! ~Alex
Sean Frye
1,167 PointsSean Frye
1,167 PointsHm. It looks like I have a lot of work to do to fix this.
Sean Frye
1,167 PointsSean Frye
1,167 PointsI finally got it right. I had to be rewatching the video while working on the quiz.
Alexander Davison
65,469 PointsAlexander Davison
65,469 Points