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 Python Basics (2015) Shopping List App Break

Dane Kurtz
Dane Kurtz
426 Points

breaks.py

can't figure out how to complete this one;(

breaks.py
def loopy(items):
    for intem in items: 
        if 

2 Answers

Greg Kaleka
Greg Kaleka
39,021 Points

Hi Dane,

This is really something you should know how to do before moving on, so I recommend going back and watching the video. That'll be more useful than someone giving you the answer here.

Kenneth does something extremely similar to print out all the items in the shopping list.

Good luck!

Cheers :beers:

-Greg

Dane Kurtz
Dane Kurtz
426 Points

Okay rewatched...what is confusing is that Kenneth uses a while loop in his examples, but the code challenge is asking me to us a forloop?

Greg Kaleka
Greg Kaleka
39,021 Points

He uses a while loop. He also uses a for loop at 5:30 in the video. Take another look :). You'll see it's almost exactly what you need to do for the challenge.