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 trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![greg solt](https://uploads.teamtreehouse.com/production/profile-photos/10646071/micro_IMG_2045.jpg)
greg 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](https://uploads.teamtreehouse.com/production/profile-photos/1153532/micro_image.jpg)
Chris Freeman
Treehouse Moderator 68,425 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](https://uploads.teamtreehouse.com/production/profile-photos/10646071/micro_IMG_2045.jpg)
greg solt
645 PointsThank you very much.
![Iosaf Canning](https://uploads.teamtreehouse.com/production/profile-photos/10815822/micro_Penguins.jpg)
Iosaf Canning
1,320 PointsI have the same problem and when I changed the indent it still didn't work
![Chris Freeman](https://uploads.teamtreehouse.com/production/profile-photos/1153532/micro_image.jpg)
Chris Freeman
Treehouse Moderator 68,425 PointsPlease your current code as a comment to this post.
![tifferz](https://uploads.teamtreehouse.com/production/profile-photos/4185922/micro_Tiff.jpg)
tifferz
7,948 PointsI am having this same issue. I unindented the call as suggested and that did not resolve the problem.
![Chris Freeman](https://uploads.teamtreehouse.com/production/profile-photos/1153532/micro_image.jpg)
Chris Freeman
Treehouse Moderator 68,425 PointsI suggest posting your code in a new forum question. Feel free to tag me in the post.
![jassem aldhaheri](https://uploads.teamtreehouse.com/production/profile-photos/886942/micro_one-piece-4283697.jpg)
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]