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 trialtony macholtz
323 PointsNumber sets and using <,>,= and such, mistake in quiz.
When looking at number, the table says less than 21 print Too Cold, next line 21 to 22 is Just right, Greater than 22 is too hot. the number 22 is really not covered. 21 TO 22 means up to, but not including 22, the next line misses 22 by saying Greater than, but not including. I know it seems picking. BUT this is why we use <,>,<=,>=. I am an old time C++ guy. You have done a great job,, just wanted to point this out.
Thanks, Tony
1 Answer
Steven Parker
231,269 PointsAs used here, "21 to 22" is meant to be inclusive. You could substitue "21 through 22" or "21 or 22".