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

Python

shopping list will not return total items added

https://w.trhou.se/pf3qii84t7 My code will not how total number items added to the list. I have confirmed that I have duplicated everything that Craig has in the video. What is wrong?

2 Answers

Steven Parker
Steven Parker
229,732 Points

The call to add_to_list is indented too far, placing it at the same level as the "continue" which then blocks it from ever being executed.

Thanks Steven that was it.