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 Continue

Keith Griffin
PLUS
Keith Griffin
Courses Plus Student 2,616 Points

I cant seem to figure out this error

sorry, relatively new coder here :/ and I have tried configuring this several different ways but it keeps giving me an error, I'm sure I probably just overlooked something. Any and all help appreciated. thanks, Keith Griffin

breaks.py
def loopy(items):
    # Code goes here
    for item in items:
        if item == "a":
            continue
        print(item)

1 Answer

You need to tell it where to look for the β€œa” at. Instructions say the 0 index so [0] needs added in somewhere, I’ll leave that to you! :)

Keith Griffin
Keith Griffin
Courses Plus Student 2,616 Points

ok I have been going rounds with it for like an hour so I finally enlisted some help, thanks for the quick response :)

No problem, I know programming can get frustrating beyond belief, and really that’s one of the things I like about it. Python was my intro to programming and it is a lot to take in. My advice is try not to get overwhelmed. And I believe Kenneth says it himself in one course, β€œerrors are going to happen.. a lot.”