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!
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
Joeseph WolfeCourses Plus Student 1,010 Points
Not sure howto resolve this challenge
I tried to resolve this one by setting up the loop like this: for item in items: if item == 'a': continue print(item)
This works in my interpreter so say if I create a list called item's and I have 'a' assigned to index, the if statement will skip it. However this is still giving me a bummer "Didn't find any items being printed...." WEIRD
def loopy(items): # Code goes here for item in items: if item == 'a': continue print(item)
Russell SawyerFront End Web Development Techdegree Student 15,705 Points
You are very close. The challenge is asking to iterate through the items unless the item with the index value of 0 is == to "a".
To check for the 0 index you need to use . item
def loopy(items): for item in items: if item == "a": continue else: print(item)