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 trialgreg solt
645 PointsQuestion about Program - Don't get the number of items to show
Hello. The script runs, but does not return the number of items.
3 Answers
Chris Freeman
Treehouse Moderator 68,454 PointsThe add_to_list(new_item)
is inside the elif
block, and after the continue
statement. Hence, it will never be reached. Unindent the line and it should work.
Post back if you need more help. Good Luck!
greg solt
645 PointsThank you very much.
Iosaf Canning
1,320 PointsI have the same problem and when I changed the indent it still didn't work
Chris Freeman
Treehouse Moderator 68,454 PointsPlease your current code as a comment to this post.
tifferz
7,948 PointsI am having this same issue. I unindented the call as suggested and that did not resolve the problem.
Chris Freeman
Treehouse Moderator 68,454 PointsI suggest posting your code in a new forum question. Feel free to tag me in the post.
jassem aldhaheri
Python Development Techdegree Student 11,123 Pointsunindent just after the while statement.
greg solt
645 Pointsgreg solt
645 Points[MOD: added ```python formatting -cf]