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

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,212 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.