Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics (2015) Shopping List App Break

challenge 1

I'm not exactly sure I have it all right but I have even written it exactly how others have gotten it right and I still get errors (mostly "didn't find all the right things in items)

def loopy(items):
    for thing in items:
        while thing is True:
        if thing == "STOP":

2 Answers

james south
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,258 Points

you don't need the while, you are just looping through the items, if it says stop, break, else, print, so you need to test for stop first before printing. it doesn't want you to print the stop item, you gotta break before that.

Never mind, I tried my original answer (not the one i posted)and it passed I might have had another small error the first time but thanks James

Okay i removed the while and put if thing == 'STOP' break .....then the print but it still says "didn't find the right items to print"