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 Continue

Albrino Fernando
Albrino Fernando
1,577 Points

Help With The Challenge "Continue"

I'm Working On The Challenge "Continue", and with my code below, I keep getting this error, "Bummer! Didn't Find The Right Items Printed!" But I don't see where my code went wrong.

def loopy(items):
    for item in items:
        if items.index == 0:

1 Answer

Thomas McDonnell
Thomas McDonnell
8,211 Points

Hey Albrino, I am not sure if this is the same challenge as I did however if it is it is asking you if the character at index 0 of the current item is the letter "a", continue

your if statement is off: if items.index == 0


if item[0] == "a":


this says if the item at index 0 is an "a" than we continue on to the next. Pass is just a place holder it doesn't actually do anything.

I hope this helps.